cubos::core::data::BinaryDeserializer class

Implementation of the abstract Deserializer class meant to deserialize data written by a BinarySerializer.

Base classes

class Deserializer
Base class for deserializers, which defines the interface for deserializing arbitrary data using its reflection metadata.

Constructors, destructors, conversion operators

BinaryDeserializer(memory::Stream& stream)
Constructs.

Protected functions

auto decompose(const reflection::Type& type, void* value) -> bool override
Called for each type with no hook defined.

Function documentation

cubos::core::data::BinaryDeserializer::BinaryDeserializer(memory::Stream& stream)

Constructs.

Parameters
stream Stream to read from.

bool cubos::core::data::BinaryDeserializer::decompose(const reflection::Type& type, void* value) override protected

Called for each type with no hook defined.

Parameters
type Type.
value Value.
Returns Whether the value was successfully deserialized.

Should recurse by calling read() again as appropriate.