CatapultServer
v0.5.0.1 (Elephant)
|
Adapt a typed buffer to be used as an input stream. More...
Public Member Functions | |
BufferInputStreamAdapter (const TContainer &input) | |
Creates an input stream around input. More... | |
size_t | position () const |
Returns read position. More... | |
bool | eof () const override |
Returns true if no data is left in the stream. More... | |
void | read (const MutableRawBuffer &buffer) override |
Public Member Functions inherited from catapult::io::InputStream | |
virtual | ~InputStream ()=default |
Private Attributes | |
const TContainer & | m_input |
size_t | m_position |
Adapt a typed buffer to be used as an input stream.
|
inlineexplicit |
Creates an input stream around input.
|
inlineoverridevirtual |
Returns true
if no data is left in the stream.
Implements catapult::io::InputStream.
|
inline |
Returns read position.
|
inlineoverridevirtual |
Reads data from this stream into buffer.
catapult_file_io_error | if requested amount of data could not be read. |
Implements catapult::io::InputStream.
|
private |
|
private |