CatapultServer  v0.5.0.1 (Elephant)
catapult::io::OutputStream Class Referenceabstract

Writer interface. More...

Inheritance diagram for catapult::io::OutputStream:

Public Member Functions

virtual ~OutputStream ()=default
 
virtual void write (const RawBuffer &buffer)=0
 
virtual void flush ()=0
 

Detailed Description

Writer interface.

Constructor & Destructor Documentation

◆ ~OutputStream()

virtual catapult::io::OutputStream::~OutputStream ( )
virtualdefault

Member Function Documentation

◆ flush()

virtual void catapult::io::OutputStream::flush ( )
pure virtual

Commits all pending data.

Exceptions
catapult_file_io_errorif flush failed.

Implemented in catapult::io::FileQueueWriter, catapult::io::BufferedOutputFileStream, catapult::io::SizeCalculatingOutputStream, catapult::io::StringOutputStream, and catapult::extensions::MemoryStream.

Here is the caller graph for this function:

◆ write()

virtual void catapult::io::OutputStream::write ( const RawBuffer &  buffer)
pure virtual

Writes data pointed to by buffer to this stream.

Exceptions
catapult_file_io_errorif 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.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: