#include <serialization/BinarySerializer.h>
◆ Serializer
◆ requireReflectBarriers
◆ ReflectState
typedef std::tuple<typename StreamType::pos_type, bool, const char*> ReflectState |
|
protected |
◆ VersionType
◆ SerializerFormatMixin()
◆ getSerializerFormatVersion()
static uint8 getSerializerFormatVersion |
( |
| ) |
|
|
inlinestatic |
◆ formatVersionOverhead()
static size_t formatVersionOverhead |
( |
| ) |
|
|
inlinestatic |
Overhead 3 bytes with each serialize().
◆ writeFormatVersion()
bool writeFormatVersion |
( |
T & |
value, |
|
|
bool |
enableTypeCheck, |
|
|
StreamType & |
stream |
|
) |
| |
|
inlineprotected |
Write the format version number into the binary output.
◆ insertVersionPlaceholder()
Put a dummy version in the binary output as placeholder, memorize the position for later when (if) the reflected object will tell us its actual version.
Should be called at the start of an object, before calling its reflect() method. Returns the previously memorized placeholder position, so it can be restored after reflecting the object.
◆ writeVersion()
Write version value to version placeholder position.
◆ restoreVersionPtr()
Restore a previous version placeholder position.
Should be called when done with reflecting an object (possibly returning to its parent).
The documentation for this class was generated from the following file: