AceSerializer-3.0

From WowAce Wiki
Jump to: navigation, search


AceSerializer-3.0 is a basic serializer. It takes care of converting strings, numbers, booleans, nils, and tables to strings.

API

If you embed AceSerializer into your addon, Serialize and Deserialize will be embedded into your addon.

:Serialize(...)

Takes a list of values (strings, numbers, booleans, nils, tables) and returns it in a serialized form (a string).

:Serialize("fred", {"george"}, 3) returns a string to be passed to :Deserialize

:Deserialize(string)

Accepts serialized data, ignoring all control characters and whitespace.

Returns true followed by a list of values, OR false followed by a message