MIRA
SerializerFormatMixin< BinaryStream, BinaryFormatVersion, Buffered, StreamType > Class Template Reference

Used by BinarySerializer, defines the binary format in particular for class versioning information: 0 = version numbers are stored inline in binary data when version() is called; 1 = same as version 0, except that version 1 (as all following versions) explicitly stores version number at the beginning of serialized data; 2 = the positions in binary data are fixed where each object part stores its version number (or a placeholder if not versioned [yet]!). More...

#include <serialization/BinarySerializer.h>

Detailed Description

template<typename BinaryStream, uint8 BinaryFormatVersion, bool Buffered, typename StreamType>
class mira::SerializerFormatMixin< BinaryStream, BinaryFormatVersion, Buffered, StreamType >

Used by BinarySerializer, defines the binary format in particular for class versioning information: 0 = version numbers are stored inline in binary data when version() is called; 1 = same as version 0, except that version 1 (as all following versions) explicitly stores version number at the beginning of serialized data; 2 = the positions in binary data are fixed where each object part stores its version number (or a placeholder if not versioned [yet]!).

The general case is empty (not usable), currently implementations for versions 0, 1 and 2 are specialized.

While BinaryStream is the output stream type for the serializer, StreamType is the type of stream that is immediately written to (normally the same, but may differ with buffered stream access).


The documentation for this class was generated from the following file: