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

#include <serialise.hh>

Inheritance diagram for nix::FramedSink:
nix::BufferedSink nix::Sink

Public Member Functions

 FramedSink (BufferedSink &to, std::exception_ptr &ex)
void writeUnbuffered (std::string_view data) override
Public Member Functions inherited from nix::BufferedSink
 BufferedSink (size_t bufSize=32 *1024)
void operator() (std::string_view data) override
void flush ()
Public Member Functions inherited from nix::Sink
virtual bool good ()

Public Attributes

BufferedSink & to
std::exception_ptr & ex
Public Attributes inherited from nix::BufferedSink
size_t bufSize
size_t bufPos
std::unique_ptr< char[]> buffer

Detailed Description

Write as chunks in the format expected by FramedSource.

The exception_ptr reference can be used to terminate the stream when you detect that an error has occurred on the remote end.

Member Function Documentation

◆ writeUnbuffered()

void nix::FramedSink::writeUnbuffered ( std::string_view data)
inlineoverridevirtual

Implements nix::BufferedSink.


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