#include <reader.h>
Public Member Functions | |
virtual size_t | getByteCount ()=0 |
template<typename T > | |
void | read (T &v) |
virtual void | readBuffer (mutable_buffer buf)=0 |
virtual void | readBytes (void *buf, size_t n)=0 |
virtual void | skip (size_t n)=0 |
virtual size_t eip::serialization::Reader::getByteCount | ( | ) | [pure virtual] |
Get the number of bytes read from the buffer
Implemented in eip::serialization::BufferReader, and eip::serialization::StreamReader.
void eip::serialization::Reader::read | ( | T & | v | ) | [inline] |
virtual void eip::serialization::Reader::readBuffer | ( | mutable_buffer | buf | ) | [pure virtual] |
Read input into the given buffer
buf | Buffer into which to copy input |
Implemented in eip::serialization::BufferReader, and eip::serialization::StreamReader.
virtual void eip::serialization::Reader::readBytes | ( | void * | buf, |
size_t | n | ||
) | [pure virtual] |
Read a set of bytes from the input into the given buffer
buf | buffer to use for reading |
n | number of bytes to read |
std::length_error | if the buffer is too small to contain that many bytes |
Implemented in eip::serialization::StreamReader, and eip::serialization::BufferReader.
virtual void eip::serialization::Reader::skip | ( | size_t | n | ) | [pure virtual] |
Skip forward in input by n bytes
n | number of bytes to skip forward |
std::length_error | if end of output buffer reached |
Implemented in eip::serialization::BufferReader, and eip::serialization::StreamReader.