struct
RTTIPlainTypeHelper
template<class SerializedObjectType, u32 SerializedObjectTypeId, u8 Version = 255, u32 HasDynamicSize = 1>Helper that allows you to construct a RTTIPlainType
<T
> specialization more easily.
Your specialization needs to inherit this type, and implement a RTTIEnumerateFields(T
&
data, Processor processor, u8 version) method. The method should then call
processor(data.field); for every field to be serialized. If your type supports versioning, you should check
the version field and serialize/deserialize the fields accordingly.
Public
Methods
staticToMemory
static BitLength ToMemory(const SerializedObjectType &data, Bitstream &stream, const RTTIFieldInfo &fieldInfo, bool compress)
staticFromMemory
static BitLength FromMemory(SerializedObjectType &data, Bitstream &stream, const RTTIFieldInfo &fieldInfo, bool compress)
staticGetSize
static BitLength GetSize(const SerializedObjectType &data, const RTTIFieldInfo &fieldInfo, bool compress)