Difference between revisions of "Serial"
Whitewater (talk | contribs) |
Whitewater (talk | contribs) m |
||
Line 4: | Line 4: | ||
As keys: Strings, numbers, and booleans | As keys: Strings, numbers, and booleans | ||
− | As values: Strings, numbers, booleans, functions without upvalues, tables, recursive tables, and | + | As values: Strings, numbers, booleans, functions without upvalues, tables, recursive tables, tables that are seen in other tables, and objects with the proper support. |
To make an object supported, make a function __serialize in the metatable that returns a string that recreates the object. | To make an object supported, make a function __serialize in the metatable that returns a string that recreates the object. | ||
Line 10: | Line 10: | ||
[http://github.com/Whitewater/Serial Serial] on [[Github]] | [http://github.com/Whitewater/Serial Serial] on [[Github]] | ||
{{#set:LOVE Version=all}} | {{#set:LOVE Version=all}} | ||
− | {{#set:Description=A [[serialization]] library optimized for large tables.}} | + | {{#set:Description=A [[serialization]] library optimized for very large tables.}} |
{{#set:License=Boost v1.0}} | {{#set:License=Boost v1.0}} | ||
{{#set:Author=User:whitewater}} | {{#set:Author=User:whitewater}} | ||
[[Category:Libraries]] | [[Category:Libraries]] |
Revision as of 04:12, 23 June 2011
Serial
Converts tables into Lua script that, when run, recreates the table.
Features
As keys: Strings, numbers, and booleans
As values: Strings, numbers, booleans, functions without upvalues, tables, recursive tables, tables that are seen in other tables, and objects with the proper support.
To make an object supported, make a function __serialize in the metatable that returns a string that recreates the object.