78#define CE_SERIALIZER_PRIMITIVE_OVERRIDE(T, N) void encode##N(T value) final;
80#undef CE_SERIALIZER_PRIMITIVE_OVERRIDE
#define CE_SERIALIZER_PRIMITIVE_OVERRIDE(T, N)
Definition BinarySerialization.hpp:78
#define CE_SERIALIZER_PRIMITIVE_TYPES(F)
Definition Serializer.hpp:23
A Deserializer that reads the serialized content from a binary encoded CBOR object stream.
Definition BinarySerialization.hpp:91
Box decode(const CBOR::Value &value, Box &&existingObject={})
Box decodeObjectReference()
~BinaryDeserializer() noexcept override
Destroys the binary deserializer.
Box decodeMap(const CBOR::Map &map, Box &&existingObject={})
BinaryDeserializer(InputStream inputStream, const SerializationContext &context=SerializationContext::getDefault())
Creates a new binary deserializer backed by an output stream.
Box decodeObject(const CBOR::Value &value, Box &&existingObject={})
Box decodeArray(const CBOR::Array &array, Box &&existingObject={})
CBOR::Decoder mDecoder
The CBOR decoder for the binary serializer.
Definition BinarySerialization.hpp:94
A Serializer that writes the serialized content as a binary encoded CBOR object stream.
Definition BinarySerialization.hpp:21
void endCustomObject() final
void endObjectProperty() final
void encodeString(StringView string) final
BinarySerializer(OutputStream outputStream, const SerializationContext &context=SerializationContext::getDefault())
Creates a new binary serializer backed by an output stream.
void beginObject(const SerializedObjectMetadata &metadata) final
void beginArray(const SerializedArrayMetadata &metadata) final
void beginObjectProperty(const SerializedPropertyMetadata &metadata) final
void encodeBinary(MemoryView< const Byte > data) final
void beginCustomObject(const SerializedCustomObjectMetadata &metadata) final
~BinarySerializer() noexcept override
Destroys the binary serializer.
CBOR::Encoder mEncoder
The CBOR encoder for the binary serializer.
Definition BinarySerialization.hpp:24
void beginMap(const SerializedMapMetadata &metadata) final
void encodeUndefined() final
void encodeObjectReference(UInt32 referenceID) final
A value type that can hold any alongside it's type information.
Definition Box.hpp:40
The Decoder class is a CBOR (Concise Binary Object Representation) decoder that provides an abstracti...
Definition CBOR.hpp:441
The Encoder class is a CBOR (Concise Binary Object Representation) encoder that provides an abstracti...
Definition CBOR.hpp:541
The Value class represents a data holder in the CBOR encoder or decoder.
Definition CBOR.hpp:284
The deserializer class has basic support for reflection-based deserializers.
Definition Deserializer.hpp:73
A memory view is a class which attaches to an chunk of memory and provides a view to it (optionally c...
Definition MemoryView.hpp:62
A stream that provides write-only stream functionality.
Definition Stream.hpp:307
A context that is shared between multiple serializer and deserializer instances.
Definition Serialization.hpp:196
static const SerializationContext & getDefault()
Gets the default serialization context to be used in case the user doesn't provide one himself.
The serializer class has basic support for reflection-based serializers.
Definition Serializer.hpp:72
const SerializationContext & context
A shared context that contains a context for the deserializer.
Definition Serializer.hpp:75
Definition Application.hpp:19
Byte
Definition DataTypes.hpp:40
std::uint32_t UInt32
Definition DataTypes.hpp:23
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Represents a CBOR array.
Definition CBOR.hpp:57
Represents a CBOR map.
Definition CBOR.hpp:81