Difference between revisions of "Textutils.unserialize"

From ComputerCraft Wiki
Jump to: navigation, search
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)|serialized]]
+
|args= [[string (type)|string]]
|returns=a copy of the original object that was serialized
+
|returns=a copy of the original object which was serialized
 
|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. See [[textutils.serialize]] for more information
+
|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


Grid Redstone.png  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