CatapultServer
v0.5.0.1 (Elephant)
|
Writer interface. More...
Public Member Functions | |
virtual | ~OutputStream ()=default |
virtual void | write (const RawBuffer &buffer)=0 |
virtual void | flush ()=0 |
Writer interface.
|
virtualdefault |
|
pure virtual |
Commits all pending data.
catapult_file_io_error | if flush failed. |
Implemented in catapult::io::FileQueueWriter, catapult::io::BufferedOutputFileStream, catapult::io::SizeCalculatingOutputStream, catapult::io::StringOutputStream, and catapult::extensions::MemoryStream.
|
pure virtual |
Writes data pointed to by buffer to this stream.
catapult_file_io_error | if proper amount of data could not be written. |
Implemented in catapult::io::FileQueueWriter, catapult::io::BufferedOutputFileStream, catapult::io::SizeCalculatingOutputStream, catapult::io::StringOutputStream, and catapult::extensions::MemoryStream.