Skip to main content

Serializable Types

In Massive Loop Lua followings are serializable:

Basic Types

  • Nil / null1 Serialization Size: 5 Bytes

  • Boolean / bool Serialization Size: 6 Bytes

  • Number / C# numerics2 Serialization Size: max 13 Bytes

  • String / string Serialization Size: 5 + string size (UTF-8 encoded)

Unity Types

Arrays

Arrays are also serializable. Serializing arrays happens at element level. If the element is a serializable type from the list above, that element gets properly serialized, otherwise the element gets serialized as a Nil.

Footnotes

  1. There is nothing in the Nil to be serialized, however, a Nil can still show that a variable is not assigned Yet.

  2. byte, ubyte, ushort, short, uint, int, ulong, long, float, double