User Guide

Lua Support in Wireshark
194
11.12.3.7. wslua:__concat()
Concatenate two objects to a string
11.12.4. TvbRange
A TvbRange represents an usable range of a Tvb and is used to extract data from the Tvb that generated it
TvbRanges are created by calling a tvb (e.g. tvb(offset,length)). If the TvbRange span is outside the Tvb's
range the creation will cause a runtime error.
11.12.4.1. tvb:range([offset], [length])
Creates a tvbr from this Tvb. This is used also as the Tvb:__call() metamethod.
11.12.4.1.1. Arguments
offset (optional) The offset (in octets) from the begining of the Tvb. Defaults to 0.
length (optional) The length (in octets) of the range. Defaults to until the end of the Tvb.
11.12.4.1.2. Returns
The TvbRange
11.12.4.2. tvbrange:uint()
Get a Big Endian (network order) unsigned integer from a TvbRange. The range must be 1, 2, 3 or 4
octets long.
11.12.4.2.1. Returns
The unsigned integer value
11.12.4.3. tvbrange:le_uint()
Get a Little Endian unsigned integer from a TvbRange. The range must be 1, 2, 3 or 4 octets long.
11.12.4.3.1. Returns
The unsigned integer value
11.12.4.4. tvbrange:uint64()
Get a Big Endian (network order) unsigned 64 bit integer from a TvbRange. The range must be 1-8 octets
long.
11.12.4.5. tvbrange:le_uint64()
Get a Little Endian unsigned 64 bit integer from a TvbRange. The range must be 1-8 octets long.
11.12.4.6. tvbrange:int()
Get a Big Endian (network order) signed integer from a TvbRange. The range must be 1, 2 or 4 octets long.