User Guide
Lua Support in Wireshark
200
11.11.1.9. treeitem:set_hidden()
Should not be used
11.11.1.10. treeitem:set_len(len)
Set TreeItem's length inside tvb, after it has already been created.
11.11.1.10.1. Arguments
len The length to be used.
11.12. Functions for handling packet data
11.12.1. ByteArray
11.12.1.1. ByteArray.new([hexbytes])
Creates a ByteArray Object
11.12.1.1.1. Arguments
hexbytes (optional) A string consisting of hexadecimal bytes like "00 B1 A2" or "1a2b3c4d"
11.12.1.1.2. Returns
The new ByteArray object.
11.12.1.2. bytearray:__concat(first, second)
Concatenate two ByteArrays
11.12.1.2.1. Arguments
first First array
second Second array
11.12.1.2.2. Returns
The new composite ByteArray.
11.12.1.2.3. Errors
• Both arguments must be ByteArrays
11.12.1.3. bytearray:prepend(prepended)
Prepend a ByteArray to this ByteArray
11.12.1.3.1. Arguments
prepended Array to be prepended