Difference between revisions of "MIST oneLineSerialize"

From DCS World Wiki - Hoggitworld.com
 
(No difference)

Latest revision as of 23:09, 13 April 2018


mist.utils.oneLineSerialize

Added with: Mist 1.0
Description
Returns a serialization of table t on a single line of text; t cannot contain cycles. If the table t is small, then the resulting string will be more readable than any other serialization method. It’s great for outputting really small tables to dcs.log with env.info just to see what’s in them.
Syntax
string mist.utils.oneLineSerialize(table t )
Valid Input Values:
table
Return value:
string
Return example:
Usage Examples:

do

local result = mist.utils.oneLineSerialize(INeedToMakeAnExampleForThis)

end

Notes:
Related Functions
deepCopy, dostring, basicSerialize, serialize, serializeWithCycles, oneLineSerialize, tableShow

Scripting Engine

MIST Root Page