sgs_Serialize(Ext) [functions]

void sgs_Serialize( sgs_Context* C, sgs_Variable var )

Serialize the given variable (convert to a byte stream).

void sgs_SerializeExt( sgs_Context* C, sgs_Variable var, int mode )

Same as above, also allows to specify serialization mode.