Home  Contents

mtd16:toText

Mtd16 Core4 Lua Commands

SYNOPSIS

text = msg:toText()

DESCRIPTION

Converts the contents of msg into printable text which can be automatically converted back into a binary message using mtd16.fromText().

RETURN VALUE

A string.

NOTES

To generate human readable text, use mtd16:trace().

EXAMPLE

>  >  >  > 
mtd16.lutTag = { Test = 0xF00F, Fnord = 0x3001 } msg = mtd16.new("Test") msg:append("Fnord", "xyzzy") print(msg:toText())
F00F=(3001="xyzzy")

SEE ALSO