Serialization general interface.
Serializer API works with:
- primitive types:
int
, float
, string
, bool
, vector
- dynamic containers:
array
, set
, map
- static arrays
- complex types: classes
- Note
- Serializer provides deep serialization (it serialize class memebers and their members etc). To avoid serialization of certain class variable, use NonSerialized attribute.
Usage:
class MyData
{
int m_id;
string m_dbg;
}
{
int statArray[4] = {6,9,2,3};
MyData data = new MyData();
data.m_id = 965;
data.m_values.Insert("value1", 5.98);
data.m_values.Insert("value2", 4.36);
}
{
int statArray[4];
MyData data;
int someInt;
string someString;
}
Definition: Serializer.c:114
Serialization general interface.
Definition: Serializer.c:59
proto bool Read(void value_in)
proto bool Write(void value_out)
Associative array template.
Definition: Types.c:481