sgs_Unserialize(Ext) [functions]
SGSBOOL sgs_Unserialize( sgs_Context* C, sgs_Variable var )
Unserialize the given variable (decode the byte stream).
SGSBOOL sgs_UnserializeExt( sgs_Context* C, sgs_Variable var, int mode )
Same as above, also allows to specify serialization mode.
Be mindful of the data sources you use - calls to any global function can be placed in the byte stream.
sgs_Unserialize
is alias ofsgs_UnserializeExt( C, var, SGS_SERIALIZE_DEFAULT )
- To make sure only the right functions can be called, the global environment can be replaced with sgs_SetEnv.