Home  Contents

mtd16:append64

Mtd16 Core4 Lua Commands

SYNOPSIS

mtd16:appendInt64(tag, valL, valH)

DESCRIPTION

Append a new data field at the end of the message. If tag is not a number, it is looked up in the table mtd16.lutTag to get its numerical value.

This appens a 64-bit integer by picking two 32-bit values from valL and valH.

For convenience, if both 32-bit values are nil, this call does nothing.

ERRORS

Raises an error if tag could not be converted to a number by looking it up in mtd16.lutTag. Also raises an error if the contents of data cannot be encoded into the data type indicated by tag.

NOTES

The function mtd16:appendInt64() first appeared in SDK 2.0.2.

SEE ALSO