#include <stream_reader.h>
Public Member Functions | |
size_t | getByteCount () |
void | readBuffer (mutable_buffer buf) |
void | readBytes (void *buf, size_t n) |
virtual void | skip (size_t n) |
StreamReader (shared_ptr< istream > isp) | |
Public Member Functions inherited from eip::serialization::Reader | |
template<typename T > | |
void | read (T &v) |
Private Attributes | |
shared_ptr< istream > | isp_ |
Helper class to read values out of a stream to assist in deserializing. Really just an adapter so that classes can use the Reader interface for all deserialization tasks.
Definition at line 49 of file stream_reader.h.
|
inline |
Create a reader to use the input stream given
isp | Input stream to use for inputs |
Definition at line 57 of file stream_reader.h.
|
inlinevirtual |
Get the number of bytes read from the buffer
Implements eip::serialization::Reader.
Definition at line 83 of file stream_reader.h.
|
inlinevirtual |
Read a set of bytes into the given buffer
buf | Buffer to use for reading |
std::length_error | if the buffer is too small to contain that many bytes |
Implements eip::serialization::Reader.
Definition at line 74 of file stream_reader.h.
|
inlinevirtual |
Read a set of bytes from the reader into a given buffer
buf | Buffer into which to copy bytes |
n | number of bytes to read |
Implements eip::serialization::Reader.
Definition at line 64 of file stream_reader.h.
|
inlinevirtual |
Skip forward in input by n bytes
n | number of bytes to skip forward |
Implements eip::serialization::Reader.
Definition at line 92 of file stream_reader.h.
|
private |
Definition at line 97 of file stream_reader.h.