Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::TarArchive Struct Reference

Public Member Functions

void check (int err, const std::string &reason="failed to extract archive (%s)")
 
 TarArchive (const std::filesystem::path &path)
 
 TarArchive (Source &source, bool raw=false, std::optional< std::string > compression_method=std::nullopt)
 Create a generic archive from source.
 
 TarArchive (const TarArchive &)=delete
 Disable copy constructor. Explicitly default move assignment/constructor.
 
TarArchiveoperator= (const TarArchive &)=delete
 
 TarArchive (TarArchive &&)=default
 
TarArchiveoperator= (TarArchive &&)=default
 
void close ()
 

Public Attributes

struct archive * archive
 
Sourcesource
 
std::vector< unsigned charbuffer
 

Constructor & Destructor Documentation

◆ TarArchive()

nix::TarArchive::TarArchive ( Source & source,
bool raw = false,
std::optional< std::string > compression_method = std::nullopt )

Create a generic archive from source.

Parameters
source- Input byte stream.
raw- Whether to enable raw file support. For more info look in docs: https://manpages.debian.org/stretch/libarchive-dev/archive_read_format.3.en.html
compression_method- Primary compression method to use. std::nullopt means 'all'.

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