MIST oneLineSerialize

From DCS World Wiki - Hoggitworld.com
Revision as of 23:09, 13 April 2018 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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