CatapultServer
v0.5.0.1 (Elephant)
|
Stream implementation for calculating the stream size. More...
Public Member Functions | |
size_t | size () const |
Gets the size. More... | |
void | write (const RawBuffer &buffer) override |
void | flush () override |
Public Member Functions inherited from catapult::io::OutputStream | |
virtual | ~OutputStream ()=default |
Private Attributes | |
size_t | m_size = 0 |
Stream implementation for calculating the stream size.
|
inlineoverridevirtual |
Commits all pending data.
catapult_file_io_error | if flush failed. |
Implements catapult::io::OutputStream.
|
inline |
Gets the size.
|
inlineoverridevirtual |
Writes data pointed to by buffer to this stream.
catapult_file_io_error | if proper amount of data could not be written. |
Implements catapult::io::OutputStream.
|
private |