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

Reader interface. More...

Inheritance diagram for catapult::io::InputStream:

Public Member Functions

virtual ~InputStream ()=default
 
virtual bool eof () const =0
 Returns true if no data is left in the stream. More...
 
virtual void read (const MutableRawBuffer &buffer)=0
 

Detailed Description

Reader interface.

Constructor & Destructor Documentation

◆ ~InputStream()

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

Member Function Documentation

◆ eof()

virtual bool catapult::io::InputStream::eof ( ) const
pure virtual

Returns true if no data is left in the stream.

Implemented in catapult::io::BufferedInputFileStream, catapult::io::BufferInputStreamAdapter< TContainer >, and catapult::io::BufferInputStreamAdapter< std::vector< uint8_t > >.

Here is the caller graph for this function:

◆ read()

virtual void catapult::io::InputStream::read ( const MutableRawBuffer &  buffer)
pure virtual

Reads data from this stream into buffer.

Exceptions
catapult_file_io_errorif requested amount of data could not be read.

Implemented in catapult::io::BufferedInputFileStream, catapult::io::BufferInputStreamAdapter< TContainer >, and catapult::io::BufferInputStreamAdapter< std::vector< uint8_t > >.

Here is the caller graph for this function:

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