|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include <serialise.hh>
Public Member Functions | |
| TeeSource (Source &orig, Sink &sink) | |
| size_t | read (char *data, size_t len) override |
| Public Member Functions inherited from nix::Source | |
| void | operator() (char *data, size_t len) |
| virtual bool | good () |
| void | drainInto (Sink &sink) |
| std::string | drain () |
Public Attributes | |
| Source & | orig |
| Sink & | sink |
Adapter class of a Source that saves all data read to a sink.
|
inlineoverridevirtual |
Store up to ‘len’ in the buffer pointed to by ‘data’, and return the number of bytes stored. It blocks until at least one byte is available.
Should not return 0 (generally you want to throw EndOfFile), but nothing stops that.
| EndOfFile | if there is no more data. |
Implements nix::Source.