#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 |
virtual size_t eip::serialization::Writer::getByteCount | ( | ) | [pure virtual] |
Get the number of bytes writen to the buffer
Implemented in eip::serialization::BufferWriter, and eip::serialization::StreamWriter.
void eip::serialization::Writer::write | ( | const T & | v | ) | [inline] |
virtual void eip::serialization::Writer::writeBuffer | ( | const_buffer | b | ) | [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.
virtual void eip::serialization::Writer::writeBytes | ( | const void * | p, |
size_t | n | ||
) | [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.