A Deserializer that reads the serialized content from a binary encoded CBOR object stream.
More...
#include <CeresEngine/Serialization/BinarySerialization.hpp>
|
| const SerializationContext & | context |
| | A shared context that contains a context for the deserializer.
|
| |
| DeserializerState | state |
| | An object that stores context for the deserializer.
|
| |
| Object | beginObject (const SerializedObjectMetadata &metadata, Box &&existingObject={}) |
| | Notifies the deserializer that a new object is starting deserialization.
|
| |
| Box | endObject (Object &object) |
| | Notifies the deserializer that an object has ended deserialization.
|
| |
| Property | beginObjectProperty (const Object &object, const SerializedPropertyMetadata &metadata) |
| | Notifies the deserializer that a new property is starting deserialization.
|
| |
| void | endObjectProperty (Object &object, const Property &property, Box &&value) |
| | Notifies the deserializer that a property has ended deserialization.
|
| |
| Box | objectReference (SerializedObjectID referenceID) |
| | Notifies the deserializer that an object reference was deserialized.
|
| |
| Box | binary (InputStream &stream, Box &&existingObject) |
| | Decodes a binary input stream into a MetaValue object.
|
| |
| Array | beginArray (const SerializedArrayMetadata &metadata, Box &&existingObject={}) |
| | Notifies the deserializer that an array is starting deserialization.
|
| |
| void | arrayElement (const Array &array, Box &&value) |
| | Notifies the deserializer that an array element was deserialized.
|
| |
| Box | endArray (Array &array) |
| | Notifies the deserializer that an array has ended deserialization.
|
| |
| Map | beginMap (const SerializedMapMetadata &metadata, Box &&existingObject={}) |
| | Notifies the deserializer that a map is starting deserialization.
|
| |
| void | mapElement (const Map &map, Box &&key, Box &&value) |
| | Notifies the deserializer that a map element was deserialized.
|
| |
| Box | endMap (Map &map) |
| | Notifies the deserializer that a map has ended deserialization.
|
| |
A Deserializer that reads the serialized content from a binary encoded CBOR object stream.
◆ BinaryDeserializer()
Creates a new binary deserializer backed by an output stream.
- Parameters
-
| inputStream | The input stream to read serialized objects from. |
| context | A context for the deserializer to operate on. |
◆ ~BinaryDeserializer()
| CeresEngine::BinaryDeserializer::~BinaryDeserializer |
( |
| ) |
|
|
overridenoexcept |
Destroys the binary deserializer.
◆ decode() [1/2]
| Box CeresEngine::BinaryDeserializer::decode |
( |
Box && |
existingObject = {} | ) |
|
|
finalvirtual |
◆ decode() [2/2]
◆ decodeArray()
◆ decodeMap()
| Box CeresEngine::BinaryDeserializer::decodeMap |
( |
const CBOR::Map & |
map, |
|
|
Box && |
existingObject = {} |
|
) |
| |
|
private |
◆ decodeObject()
◆ decodeObjectReference()
| Box CeresEngine::BinaryDeserializer::decodeObjectReference |
( |
| ) |
|
|
private |
◆ mDecoder
The CBOR decoder for the binary serializer.
The documentation for this class was generated from the following file: