Download Wireshark Documentation - Bandwidthco Computer Security

Transcript
Lua Support in Wireshark
Sets the size of a ByteArray, either truncating it or filling it with zeros.
10.4.8.1.5.1. Arguments
size
New size of the array
10.4.8.1.5.2. Errors
•
ByteArray size must be non-negative
10.4.8.1.6. bytearray:set_index(index, value)
Sets the value of an index of a ByteArray.
10.4.8.1.6.1. Arguments
index
The position of the byte to be set
value
The char value to set [0-255]
10.4.8.1.7. bytearray:get_index(index)
Set the value of a byte in a ByteArray
10.4.8.1.7.1. Arguments
index
The position of the byte to be set
10.4.8.1.7.2. Returns
The value [0-255] of the byte.
10.4.8.1.8. bytearray:len()
Obtain the length of a ByteArray
10.4.8.1.8.1. Returns
The length of the ByteArray.
10.4.8.1.9. bytearray:subset(offset, length)
Obtain a segment of a ByteArray
10.4.8.1.9.1. Arguments
offset
The position of the first byte
length
The length of the segment
246