#include <serialise.hh>
Public Member Functions | |
ChainSource (Source &s1, Source &s2) | |
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 & | source1 |
Source & | source2 |
bool | useSecond = false |
Chain two sources together so after the first is exhausted, the second is used
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.