Class BinaryDeserializer

Inheritance Relationships

Base Type

Class Documentation

class BinaryDeserializer : public portal::Deserializer

Concrete binary deserialization implementation for reading Portal’s binary format.

BinaryDeserializer reads data sequentially from an std::istream in the binary format written by BinarySerializer. The read order must exactly match the write order.

Public Functions

explicit BinaryDeserializer(std::istream &input, bool read_header = true)

Constructs deserializer with default parameters.

Parameters:
  • input – Input stream to read from (must be opened in binary mode)

  • read_header – Whether to read and validate the 4-byte header

BinaryDeserializer(std::istream &input, BinarySerializationParams params)

Constructs deserializer with custom parameters.

Parameters:
  • input – Input stream to read from (must be opened in binary mode)

  • params – Configuration matching the serialization parameters

Protected Functions

virtual reflection::Property get_property() override