#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 |
|
pure virtual |
Get the number of bytes read from the buffer
Implemented in eip::serialization::BufferReader, and eip::serialization::StreamReader.
|
inline |
|
pure virtual |
Read input into the given buffer
buf | Buffer into which to copy input |
Implemented in eip::serialization::BufferReader, and eip::serialization::StreamReader.
|
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.
|
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.