mutils.serializer.common

Undocumented in source.

Members

Enums

Load
enum Load

Enum to check if data is loaded or saved

Functions

commonSerialize
void commonSerialize(Serializer ser, T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
commonSerializePointer
void commonSerializePointer(Serializer ser, T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
hasMallocUda
auto hasMallocUda()

Checks if in user defined attributes(UDA) there is malloc string "malloc" string UDA indicates that data should be allocated by serializer

hasNoserializeUda
auto hasNoserializeUda()

Checks if in user defined attributes(UDA) there is noserialize string "noserialize" string UDA indicates that data should not be serialzied by serializer

ignoreBraces
void ignoreBraces(COS con, char braceStart, char braceEnd)
Undocumented in source. Be warned that the author may not have intended to support it.
ignoreToMatchingComma
void ignoreToMatchingComma(COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
isCustomMap
bool isCustomMap()

Checks if type can be treated as map

isCustomVector
bool isCustomVector()

Checks if type can be treated as vector ex. replace int[] with MyArray!int

isMallocType
auto isMallocType()

Checks if type have to be allocated by serializer

isStringVector
bool isStringVector()
Undocumented in source. Be warned that the author may not have intended to support it.
loadOrSkip
Load loadOrSkip()

Returns Load.yes when load is Load.yes or Load.skip

serializeBoolToken
void serializeBoolToken(bool var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeCharToken
void serializeCharToken(char ch, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeCustomVectorString
void serializeCustomVectorString(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.
tokensToCharVectorPreatyPrint
void tokensToCharVectorPreatyPrint(TokenData[] tokens, Vec vec)
Undocumented in source. Be warned that the author may not have intended to support it.
writelnTokens
void writelnTokens(TokenData[] tokens)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

check
void check(bool ok)

Runtime check, throws nogc exception on error

Structs

NoGcSlice
struct NoGcSlice(T)

Struct to let BoundsChecking Without GC

Meta