|
LogCabin
|
An abstract stream to which ProtoBufs may be written. More...
#include <ProtoBuf.h>
Public Member Functions | |
| virtual | ~OutputStream () |
| Destructor. | |
| virtual uint64_t | getBytesWritten () const =0 |
| Return the number of bytes written so far. | |
| virtual void | writeMessage (const google::protobuf::Message &message)=0 |
| Write the given ProtoBuf message to the stream. | |
| virtual void | writeRaw (const void *data, uint64_t length)=0 |
| Write some raw bytes to the stream. | |
An abstract stream to which ProtoBufs may be written.
Definition at line 181 of file ProtoBuf.h.
| virtual LogCabin::Core::ProtoBuf::OutputStream::~OutputStream | ( | ) | [inline, virtual] |
Destructor.
Definition at line 185 of file ProtoBuf.h.
| virtual uint64_t LogCabin::Core::ProtoBuf::OutputStream::getBytesWritten | ( | ) | const [pure virtual] |
Return the number of bytes written so far.
Implemented in LogCabin::Storage::SnapshotFile::Writer.
| virtual void LogCabin::Core::ProtoBuf::OutputStream::writeMessage | ( | const google::protobuf::Message & | message | ) | [pure virtual] |
Write the given ProtoBuf message to the stream.
Implemented in LogCabin::Storage::SnapshotFile::Writer.
| virtual void LogCabin::Core::ProtoBuf::OutputStream::writeRaw | ( | const void * | data, |
| uint64_t | length | ||
| ) | [pure virtual] |
Write some raw bytes to the stream.
Implemented in LogCabin::Storage::SnapshotFile::Writer.
1.7.6.1