#include <serialise.hh>
Public Member Functions | |
TeeSource (Source &orig, Sink &sink) | |
size_t | read (char *data, size_t len) override |
![]() | |
void | operator() (char *data, size_t len) |
void | operator() (std::string_view data) |
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.
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.
Implements nix::Source.