|
Cbeam
|
Provides serialization and deserialization logic for nested_map<Key, Value>.
More...
#include <nested_map.hpp>
Static Public Member Functions | |
| static void | serialize (const Map &map, container::buffer &stream) |
Serializes a nested map by serializing map.data and map.sub_tables, appending to stream. | |
| static void | deserialize (serialized_object &it, Map &map) |
Deserializes the content for map.data and map.sub_tables from the buffer, replacing map’s contents. | |
Provides serialization and deserialization logic for nested_map<Key, Value>.
A nested map has data (a standard map of Key to Value) plus sub_tables (a map of Key to further nested_map). Both must be recursively serialized.
|
inlinestatic |
Deserializes the content for map.data and map.sub_tables from the buffer, replacing map’s contents.
| it | The position in the buffer from which to read. |
| map | The nested_map object to populate. |
|
inlinestatic |
Serializes a nested map by serializing map.data and map.sub_tables, appending to stream.
| map | The nested_map to serialize. |
| stream | The buffer to which the serialized data is appended. |