Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::NARParseVisitor::FileHandle Struct Referenceabstract

#include <archive.hh>

Inheritance diagram for nix::NARParseVisitor::FileHandle:
nix::parseAsync::ReconstructVisitor::FileReader

Public Member Functions

 FileHandle (FileHandle const &)=delete
FileHandle & operator= (FileHandle &)=delete
virtual void receiveContents (std::string_view data)=0
virtual void close ()=0

Detailed Description

A type-erased file handle specific to this particular NARParseVisitor.

Member Function Documentation

◆ close()

virtual void nix::NARParseVisitor::FileHandle::close ( )
pure virtual

Explicitly closes the file. Further operations may throw an assert. This exists so that closing can fail and throw an exception without doing so in a destructor.

Implemented in nix::parseAsync::ReconstructVisitor::FileReader.

◆ receiveContents()

virtual void nix::NARParseVisitor::FileHandle::receiveContents ( std::string_view data)
pure virtual

Puts one block of data into the file

Implemented in nix::parseAsync::ReconstructVisitor::FileReader.


The documentation for this struct was generated from the following file: