User Guide
Lua Support in Wireshark
201
11.12.1.3.2. Errors
• Both arguments must be ByteArrays
11.12.1.4. bytearray:append(appended)
Append a ByteArray to this ByteArray
11.12.1.4.1. Arguments
appended Array to be appended
11.12.1.4.2. Errors
• Both arguments must be ByteArrays
11.12.1.5. bytearray:set_size(size)
Sets the size of a ByteArray, either truncating it or filling it with zeros.
11.12.1.5.1. Arguments
size New size of the array
11.12.1.5.2. Errors
• ByteArray size must be non-negative
11.12.1.6. bytearray:set_index(index, value)
Sets the value of an index of a ByteArray.
11.12.1.6.1. Arguments
index The position of the byte to be set
value The char value to set [0-255]
11.12.1.7. bytearray:get_index(index)
Get the value of a byte in a ByteArray
11.12.1.7.1. Arguments
index The position of the byte to get
11.12.1.7.2. Returns
The value [0-255] of the byte.
11.12.1.8. bytearray:len()
Obtain the length of a ByteArray