#include <serialise.hh>
Public Member Functions | |
StreamToSourceAdapter (std::shared_ptr< std::basic_istream< char > > istream) | |
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 | |
std::shared_ptr< std::basic_istream< char > > | istream |
An adapter that converts a std::basic_istream into a source.
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.