User Guide
Lua Support in Wireshark
207
11.12.4.21. tvbrange:ustringz()
Obtain a Big Endian (network order) UTF-16 encoded zero terminated string from a TvbRange
11.12.4.21.1. Returns
The zero terminated string, the length found in tvbr
11.12.4.22. tvbrange:le_ustringz()
Obtain a Little Endian UTF-16 encoded zero terminated string from a TvbRange
11.12.4.22.1. Returns
The zero terminated string, the length found in tvbr
11.12.4.23. tvbrange:bytes()
Obtain a ByteArray
11.12.4.23.1. Returns
The ByteArray
11.12.4.24. tvbrange:bitfield([position], [length])
Get a bitfield from a TvbRange.
11.12.4.24.1. Arguments
position (optional) The bit offset from the begining of the TvbRange. Defaults to 0.
length (optional) The length (in bits) of the field. Defaults to 1.
11.12.4.24.2. Returns
The bitfield value
11.12.4.25. tvbrange:range([offset], [length])
Creates a sub-TvbRange from this TvbRange. This is used also as the TvbRange:__call() metamethod.
11.12.4.25.1. Arguments
offset (optional) The offset (in octets) from the begining of the TvbRange. Defaults to 0.
length (optional) The length (in octets) of the range. Defaults to until the end of the TvbRange.
11.12.4.25.2. Returns
The TvbRange
11.12.4.26. tvbrange:len()
Obtain the length of a TvbRange