SYNOPSIS
flag = msg:isValid()
DESCRIPTION
Checks if msg is valid, in other words, if it's binary contents are properly encoded.
An empty message is not valid.
RETURN VALUE
Returns a boolean indicating if msg is valid.
EXAMPLE
>
>
msg = mtd16.new()
print(msg:isValid())
false
>
>
msg = mtd16:fromData("0x00")
print(msg:isValid())
false
SEE ALSO
#mtd16, mtd16.answerCode, mtd16.fromData, mtd16.fromText, mtd16.isNestedTag, mtd16.lutType, mtd16.new, mtd16.tagCode, mtd16.tagName, mtd16.tagNumber, mtd16.tagType, mtd16:append, mtd16:appendMessageCode, mtd16:contains, mtd16:get, mtd16:getNumber, mtd16:getString, mtd16:isEmpty, mtd16:messageCode, mtd16:nextMessageCode, mtd16:pairs, mtd16:rewind, mtd16:tags, mtd16:toData, mtd16:toText, mtd16:trace, tostring(mtd16)