libcaf
0.13.2
|
Implements the deserializer interface with a binary serialization protocol. More...
#include <binary_deserializer.hpp>
Public Member Functions | |
binary_deserializer (const void *buf, size_t buf_size, actor_namespace *ns=nullptr) | |
binary_deserializer (const void *begin, const void *end_, actor_namespace *ns=nullptr) | |
const uniform_type_info * | begin_object () override |
Begins deserialization of a new object. | |
void | end_object () override |
Ends deserialization of an object. | |
size_t | begin_sequence () override |
Begins deserialization of a sequence. More... | |
void | end_sequence () override |
Ends deserialization of a sequence. | |
void | read_value (primitive_variant &storage) override |
Reads a primitive value from the data source. | |
void | read_raw (size_t num_bytes, void *storage) override |
Reads a raw memory block. | |
void | set_rdbuf (const void *buf, size_t buf_size) |
Replaces the current read buffer. | |
void | set_rdbuf (const void *begin, const void *end_) |
Replaces the current read buffer. | |
![]() | |
deserializer (actor_namespace *ns=nullptr) | |
template<class T > | |
T | read () |
Reads a value of type T from the data source. More... | |
template<class T > | |
T | read (const uniform_type_info *uti) |
template<class T > | |
deserializer & | read (T &storage) |
template<class T > | |
deserializer & | read (T &storage, const uniform_type_info *uti) |
actor_namespace * | get_namespace () |
template<class Buffer > | |
void | read_raw (size_t num_bytes, Buffer &storage) |
Implements the deserializer interface with a binary serialization protocol.
|
overridevirtual |
Begins deserialization of a sequence.
Implements caf::deserializer.