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

Aliases

SliceElementType
alias SliceElementType = ubyte
Undocumented in source.

Functions

beginObject
int beginObject(COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
endObject
void endObject(COS con, int begin)
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
void serialize(T var, COS 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 COS is ubyte[] when load==Load.yes COS 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, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeBasicVar
void serializeBasicVar(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeClass
void serializeClass(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeClassOrStruct
void serializeClassOrStruct(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeCustomMap
void serializeCustomMap(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeCustomVector
void serializeCustomVector(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeDynamicArray
void serializeDynamicArray(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializePointer
void serializePointer(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeStaticArray
void serializeStaticArray(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeString
void serializeString(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeStruct
void serializeStruct(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeWithName
void serializeWithName(T var, COS 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