class MessageWriter
Defined at line 24 of file ../../src/developer/debug/ipc/message_writer.h
Provides a simple means to append to a dynamic buffer different types of
data.
The first 4 bytes of each message is the message size. It's assumed that
these bytes will be explicitly written to. Normally a message will start
with a struct which contains space for this explicitly.
Public Methods
std::vector<char> MessageComplete ()
Writes the size of the current buffer to the first 4 bytes, and
destructively returns the buffer.
Defined at line 19 of file ../../src/developer/debug/ipc/message_writer.cc
void SerializeBytes (void * data, uint32_t len)
Defined at line 13 of file ../../src/developer/debug/ipc/message_writer.cc
void MessageWriter (uint32_t version, size_t initial_size)
|initial_size| is a hint for the initial size of the message.
Defined at line 27 of file ../../src/developer/debug/ipc/message_writer.h
size_t current_length ()
Defined at line 31 of file ../../src/developer/debug/ipc/message_writer.h
uint32_t GetVersion ()
Implement |Serializer|.
Defined at line 38 of file ../../src/developer/debug/ipc/message_writer.h