Back to index...

NameTypeDeprecatedSecureDescription
Utility.Serialize.FullfunctionSerializes a table of parameters. Results in a string suitable for feeding directly into loadstri...
Utility.Serialize.InlinefunctionSerializes a single parameter. Results in a string suitable for use as a parameter in Lua code. I...

Utility.Serialize.Full

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)
ParameterTypeDatatypeDescription
elementsparametertableTable of elements to serialize.
existsparametertableOptional parameter containing a table of elements that should be included even in the case that they are nil.
serializedresultstringString containing serialized output. May be nil if there was an error with the input.

Utility.Serialize.Inline

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)
ParameterTypeDatatypeDescription
elementparametervariantElement to serialize.
serializedresultstringString containing serialized output. May be nil if there was an error with the input.

Back to index...