Name | Type | Deprecated | Secure | Description |
Utility.Serialize.Full | function | | | Serializes a table of parameters. Results in a string suitable for feeding directly into loadstri... |
Utility.Serialize.Inline | function | | | Serializes a single parameter. Results in a string suitable for use as a parameter in Lua code. I... |
Serializes a table of parameters. Results in a string suitable for feeding directly into loadstring(). Deals properly with table cycles and non-tree structures.
Usage:
serialized = Utility.Serialize.Full(elements) |
serialized = Utility.Serialize.Full(elements, exists) |
Parameter | Type | Datatype | Description |
elements | parameter | table | Table of elements to serialize. |
exists | parameter | table | Optional parameter containing a table of elements that should be included even in the case that they are nil. |
serialized | result | string | String containing serialized output. May be nil if there was an error with the input. |
Serializes a single parameter. Results in a string suitable for use as a parameter in Lua code. If the input is a table, it must not contain table cycles or non-tree structures.
Usage:
serialized = Utility.Serialize.Inline(element) |
Parameter | Type | Datatype | Description |
element | parameter | variant | Element to serialize. |
serialized | result | string | String containing serialized output. May be nil if there was an error with the input. |