JSONSerializer

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

Members

Aliases

SliceElementType
alias SliceElementType = char
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 T is the serialized variable COS is char[] when load==Load.yes COS container supplied by user in which data is stored when load==Load.no(save)

serialize
void serialize(T var, COS con)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

instance
JSONSerializer instance;
Undocumented in source.
tokenSerializer
JSONSerializerToken tokenSerializer;
Undocumented in source.

Variables

lex
JSONLexer lex;
Undocumented in source.

Meta