Wireshark - 1.0 Betriebsanweisung

Seite von 284
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)
get 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
10.4.8.1.9.2. Returns
a ByteArray contaning the requested segment.
a string contaning a representaion of the ByteArray.
10.4.8.2. Int
* Int64 represents a 64 bit integer. * Lua uses one single number representation which can be chosen
at compile time and since * it is often set to IEEE 754 double precision floating point, we cannot
store a 64 bit integer * with full precision. * For details, see: http://lua-users.org/wiki/FloatingPoint
10.4.8.3. Tvb
Lua Support in Wireshark
225