Moai SDK  2.0
MOAISerializer Class Reference

Inherits MOAISerializerBase.

Function List

serializeToFile
 
serializeToString
 

Function Documentation

serializeToFile

Serializes the specified table or object to a file.


function serializeToFile ( string filename, table data )

Parameters
stringfilename The file to create.
tabledata The table to serialize.
Returns
nil
Note

function serializeToFile ( string filename, MOAILuaObject data )

Parameters
stringfilename The file to create.
MOAILuaObjectdata The object to serialize.
Returns
nil
Note

function serializeToFile ( MOAISerializer self, string filename, table data )

Parameters
MOAISerializerself
stringfilename The file to create.
tabledata The table to serialize.
Returns
nil
Note

function serializeToFile ( MOAISerializer self, string filename, MOAILuaObject data )

Parameters
MOAISerializerself
stringfilename The file to create.
MOAILuaObjectdata The object to serialize.
Returns
nil
Note
serializeToString

Serializes the specified table or object to a string.


function serializeToString ( table data )

Parameters
tabledata The table to serialize.
Returns
string serialized
Note

function serializeToString ( MOAILuaObject data )

Parameters
MOAILuaObjectdata The object to serialize.
Returns
string serialized
Note

function serializeToString ( MOAISerializer self, table data )

Parameters
MOAISerializerself
tabledata The table to serialize.
Returns
string serialized
Note

function serializeToString ( MOAISerializer self, MOAILuaObject data )

Parameters
MOAISerializerself
MOAILuaObjectdata The object to serialize.
Returns
string serialized
Note