CatapultServer
v0.5.0.1 (Elephant)
|
Provides a buffered input stream around raw file. More...
Public Member Functions | |
BufferedInputFileStream (RawFile &&rawFile, size_t bufferSize=Default_Stream_Buffer_Size) | |
Creates a buffered input stream around rawFile with an optional internal buffer size (bufferSize). 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 | |
RawFile | m_rawFile |
std::vector< uint8_t > | m_buffer |
size_t | m_bufferPosition |
size_t | m_numBytesInBuffer |
Provides a buffered input stream around raw file.
catapult::io::BufferedInputFileStream::BufferedInputFileStream | ( | RawFile && | rawFile, |
size_t | bufferSize = Default_Stream_Buffer_Size |
||
) |
Creates a buffered input stream around rawFile with an optional internal buffer size (bufferSize).
|
overridevirtual |
Returns true
if no data is left in the stream.
Implements catapult::io::InputStream.
|
overridevirtual |
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 |
|
private |
|
private |