Cbeam
|
Specialization of traits
for std::map<Key, Value>
providing serialization/deserialization.
More...
#include <map.hpp>
Static Public Member Functions | |
static void | serialize (const std::map< Key, Value > &map, container::buffer &stream) |
static void | deserialize (serialized_object &it, std::map< Key, Value > &map) |
static void | serialize (const std::map< Key, Value > &val, container::buffer &stream) |
Required to serialize an object of type T into a shared_buffer stream. | |
static void | deserialize (serialized_object &it, std::map< Key, Value > &val) |
Required to deserialize an object of type T from a serialized memory block, incrementing the iterator it . | |
Specialization of traits
for std::map<Key, Value>
providing serialization/deserialization.
Uses map_serializer<std::map<Key,Value>>
under the hood.
Key | The key type of the std::map. |
Value | The mapped type of the std::map. |
|
inlinestatic |
|
inlinestatic |
Required to deserialize an object of type T from a serialized memory block, incrementing the iterator it
.
it | A reference to a pointer to the serialized memory block. |
val | A reference to the object of type T, where the deserialized data will be stored. |
This method should deserialize an object of type T from a serialized memory block, incrementing the iterator it
to point to the next part of the serialized data. It should handle different types of data, managing memory and type conversion as needed.
|
inlinestatic |
|
inlinestatic |
Required to serialize an object of type T into a shared_buffer stream.
val | The object to serialize. |
stream | The shared_buffer stream into which the object is serialized. |
This method should take an object of type T and serialize it into a container::buffer
stream. by using its append
method.