Difference between revisions of "Textutils.unserialize"

From ComputerCraft Wiki
Jump to: navigation, search
m
Line 6: Line 6:
 
|api=textutils
 
|api=textutils
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Converts the serialized string back into an object.  The string should have been created using [[textutils.serialize()|serialize]].  Note, the representation used by textutils actually creates Lua syntax, so that [loadstring] will also work to deserialize.
+
|desc=Converts the serialized string back into an object.  The string should have been created using [[Textutils.serialize|serialize]].  Note, the representation used by textutils actually creates Lua syntax, so that [loadstring] will also work to deserialize.
 
}}
 
}}

Revision as of 16:00, 29 October 2012


Grid Redstone.png  Function textutils.unserialize
Converts the serialized string back into an object. The string should have been created using serialize. Note, the representation used by textutils actually creates Lua syntax, so that [loadstring] will also work to deserialize.
Syntax textutils.unserialize(serialized)
Returns a copy of the original object that was serialized
Part of ComputerCraft
API textutils