#include <serializable_buffer.h>
Generic buffer of data that can be serialized
Definition at line 45 of file serializable_buffer.h.
eip::serialization::SerializableBuffer::SerializableBuffer |
( |
| ) |
|
|
inline |
Construct an empty serializable buffer
- Parameters
-
data | Data to hold in the buffer |
Definition at line 53 of file serializable_buffer.h.
eip::serialization::SerializableBuffer::SerializableBuffer |
( |
mutable_buffer |
data | ) |
|
|
inline |
Construct a serializable buffer for the given data buffer
- Parameters
-
data | Data to hold in the buffer |
Definition at line 59 of file serializable_buffer.h.
virtual eip::serialization::SerializableBuffer::~SerializableBuffer |
( |
| ) |
|
|
inlinevirtual |
void eip::serialization::SerializableBuffer::deleteAllocatedBuffer |
( |
| ) |
|
|
inlineprivate |
virtual Reader& eip::serialization::SerializableBuffer::deserialize |
( |
Reader & |
reader, |
|
|
size_t |
length |
|
) |
| |
|
inlinevirtual |
Deserialize buffer data from the given reader, up to the length given. Will use the buffer already allocated.
- Parameters
-
reader | Reader to use for deserialization |
length | Length expected for data |
- Returns
- the reader again
- Exceptions
-
std::length_error | if the given length is greater than allocated data buffer |
Implements eip::serialization::Serializable.
Definition at line 118 of file serializable_buffer.h.
virtual Reader& eip::serialization::SerializableBuffer::deserialize |
( |
Reader & |
reader | ) |
|
|
inlinevirtual |
Deserialize data into this buffer, using the size of the buffer already allocated
- Parameters
-
reader | Reader to use for deserialization |
- Returns
- the reader again
- Exceptions
-
std::length_error | if the buffer is overrun while deserializing |
Implements eip::serialization::Serializable.
Definition at line 148 of file serializable_buffer.h.
virtual mutable_buffer eip::serialization::SerializableBuffer::getData |
( |
| ) |
const |
|
inlinevirtual |
virtual size_t eip::serialization::SerializableBuffer::getLength |
( |
| ) |
const |
|
inlinevirtual |
void eip::serialization::SerializableBuffer::operator= |
( |
mutable_buffer |
b | ) |
|
|
inline |
virtual Writer& eip::serialization::SerializableBuffer::serialize |
( |
Writer & |
writer | ) |
const |
|
inlinevirtual |
virtual void eip::serialization::SerializableBuffer::setData |
( |
mutable_buffer |
data | ) |
|
|
inlinevirtual |
Set the data for the buffer
- Parameters
-
data | Data to assign to the buffer |
Definition at line 89 of file serializable_buffer.h.
char* eip::serialization::SerializableBuffer::allocated_buffer_ |
|
private |
mutable_buffer eip::serialization::SerializableBuffer::data_ |
|
private |
The documentation for this class was generated from the following file: