Serialization in SGScript

In SGScript, serialization is conversion to a binary stream of a specific format. Serialization in the language API is done by calling the "serialize" function and deserialization is done with "unserialize". The C API has similar functions: sgs_Serialize(Ext) / sgs_SerializeObject and sgs_Unserialize, respectively.

check the "Possible gotchas" part of this page if it is intended to trust the end user with access to serialized data

The format (modes 1 and 2)

The format (mode 3)



Possible gotchas