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

#include <memory-source-accessor.hh>

Inheritance diagram for nix::MemorySink:
nix::FileSystemObjectSink

Public Member Functions

 MemorySink (MemorySourceAccessor &dst)
void createDirectory (const CanonPath &path) override
void createRegularFile (const CanonPath &path, fun< void(CreateRegularFileSink &)>) override
void createSymlink (const CanonPath &path, const std::string &target) override
Public Member Functions inherited from nix::FileSystemObjectSink
virtual void createDirectory (const CanonPath &path, DirectoryCreatedCallback callback)

Public Attributes

MemorySourceAccessor & dst

Additional Inherited Members

Public Types inherited from nix::FileSystemObjectSink
using DirectoryCreatedCallback = fun<void(FileSystemObjectSink & dirSink, const CanonPath & dirRelPath)>

Detailed Description

Write to a MemorySourceAccessor at the given path

Member Function Documentation

◆ createDirectory()

void nix::MemorySink::createDirectory ( const CanonPath & path)
overridevirtual

◆ createRegularFile()

void nix::MemorySink::createRegularFile ( const CanonPath & path,
fun< void(CreateRegularFileSink &)>  )
overridevirtual

This function in general is no re-entrant. Only one file can be written at a time.

Implements nix::FileSystemObjectSink.

◆ createSymlink()

void nix::MemorySink::createSymlink ( const CanonPath & path,
const std::string & target )
overridevirtual

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