BinarySerializer

Serializer to save data in binary format (little endian) If serialized data have to be allocated it is not saved/loaded unless it has "malloc" UDA (@("malloc"))

Members

Functions

serialize
void serialize(T var, ContainerOrSlice con)

Function loads and saves data depending on compile time variable load If useMalloc is true pointers, arrays, classes will be saved and loaded using Mallocator (there is exception, if vairable is not null it won't be allocated) T is the serialized variable ContainerOrSlice is ubyte[] when load==Load.yes ContainerOrSlice container supplied by user in which data is stored when load==Load.no(save) If load==load.skip data is not loaded but slice is pushed fruther

serialize
void serialize(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeBasicVar
void serializeBasicVar(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeClass
void serializeClass(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeClassOrStruct
void serializeClassOrStruct(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeCustomVector
void serializeCustomVector(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeDynamicArray
void serializeDynamicArray(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializePointer
void serializePointer(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeStaticArray
void serializeStaticArray(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeStruct
void serializeStruct(T var, ContainerOrSlice con)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

instance
BinarySerializer instance;
Undocumented in source.

Meta