User Guide

Lua Support in Wireshark
191
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
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.