There are 6 data types saved for scripts.
When saving, each data starts with the type marker saved as SLE_UINT8
followed by the actual data.
- SQLS_INT:
- an
SLE_INT64
with the actual value
- an
- SQLS_STRING:
- an
SLE_UINT8
with the string length - string len
SLE_CHAR
- an
- SQLS_ARRAY:
- each element saved as a separate data (ie type then value)
- an SQLS_ARRAY_TABLE_END marker (
SLE_UINT8
)
- SQSL_TABLE:
- for each element:
- key saved as a separate data
- value saved as a separate data
- an SQLS_ARRAY_TABLE_END marker (
SLE_UINT8
)
- for each element:
- SQSL_BOOL:
- an
SLE_UINT8
with 0/1 depending on value
- an
- SQSL_NULL:
- nothing
The first data type is always a SQSL_TABLE.