LogCabin
|
An abstract stream from which ProtoBufs may be read. More...
#include <ProtoBuf.h>
Public Member Functions | |
virtual | ~InputStream () |
Destructor. | |
virtual uint64_t | getBytesRead () const =0 |
Return the number of bytes read so far. | |
virtual std::string | readMessage (google::protobuf::Message &message)=0 |
Read a ProtoBuf message from the stream. | |
virtual uint64_t | readRaw (void *data, uint64_t length)=0 |
Read some raw bytes from the stream. |
An abstract stream from which ProtoBufs may be read.
Definition at line 153 of file ProtoBuf.h.
virtual LogCabin::Core::ProtoBuf::InputStream::~InputStream | ( | ) | [inline, virtual] |
Destructor.
Definition at line 157 of file ProtoBuf.h.
virtual uint64_t LogCabin::Core::ProtoBuf::InputStream::getBytesRead | ( | ) | const [pure virtual] |
Return the number of bytes read so far.
Implemented in LogCabin::Storage::SnapshotFile::Reader.
virtual std::string LogCabin::Core::ProtoBuf::InputStream::readMessage | ( | google::protobuf::Message & | message | ) | [pure virtual] |
Read a ProtoBuf message from the stream.
Implemented in LogCabin::Storage::SnapshotFile::Reader.
virtual uint64_t LogCabin::Core::ProtoBuf::InputStream::readRaw | ( | void * | data, |
uint64_t | length | ||
) | [pure virtual] |
Read some raw bytes from the stream.
Implemented in LogCabin::Storage::SnapshotFile::Reader.