#include <writer.h>
Public Member Functions | |
virtual size_t | getByteCount ()=0 |
template<typename T > | |
void | write (const T &v) |
virtual void | writeBuffer (const_buffer b)=0 |
virtual void | writeBytes (const void *p, size_t n)=0 |
|
pure virtual |
Get the number of bytes writen to the buffer
Implemented in eip::serialization::BufferWriter, and eip::serialization::StreamWriter.
|
inline |
|
pure virtual |
Write out the contents of a buffer
b | buffer of data to add to the current buffer at the current location |
std::length_error | if the output buffer is too small to contain the contents of b |
Implemented in eip::serialization::StreamWriter, and eip::serialization::BufferWriter.
|
pure virtual |
Write a set of bytes
p | pointer to data to write |
n | number of bytes to write |
std::length_error | if the buffer is too small to contain that many bytes |
Implemented in eip::serialization::StreamWriter, and eip::serialization::BufferWriter.