Encoding
Last updated
Was this helpful?
Last updated
Was this helpful?
The functions for converting data from one format to another are described here.
The Json function converts a variable of obj type into json string.
The JsonToObj function converts json string into a variable of the obj type.
The StructDecode function converts the binary data of a buf variable to the field values of the specified structure variable. The binary data must be created with StructEncode function.
The StructEncode function converts a structure variable to binary and stores the result into a buf variable. The function saves only fields of the following types: int, bool, char, float, buf, str. Fields of other types are skipped.