Difference between revisions of "Textutils.unserialize"
From ComputerCraft Wiki
m (Aiee carumba, grammar was not strong with this one.) |
|||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=textutils.unserialize | |name=textutils.unserialize | ||
− | |args= [[string (type)| | + | |args= [[string (type)|string]] |
− | |returns=a copy of the original object | + | |returns=a copy of the original object which was serialized |
|api=textutils | |api=textutils | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Converts | + | |desc=Converts a serialized string back into an object. The string should have been created using [[Textutils.serialize|textutils.serialize]](). Note, the representation used by [[Textutils_(API)|textutils]] actually creates Lua-friendly syntax, so that loadstring() will also work to unserialize. See [[textutils.serialize]]() for more information. |
}} | }} | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
Revision as of 16:57, 2 January 2013
Function textutils.unserialize | |
Converts a serialized string back into an object. The string should have been created using textutils.serialize(). Note, the representation used by textutils actually creates Lua-friendly syntax, so that loadstring() will also work to unserialize. See textutils.serialize() for more information. | |
Syntax | textutils.unserialize(string) |
Returns | a copy of the original object which was serialized |
Part of | ComputerCraft |
API | textutils |