User Guide

* a TvbRange represents an usable range of a Tvb and is used to extract data from the Tvb that gen-
erated 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.
10.4.8.4.1. tvb:range([offset], [length])
creates a tvbr from this Tvb. This is used also as the Tvb:__call() metamethod.
10.4.8.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.
10.4.8.4.1.2. Returns
the TvbRange
10.4.8.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.
10.4.8.4.2.1. Returns
the unsigned integer value
10.4.8.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.
10.4.8.4.3.1. Returns
the unsigned integer value
10.4.8.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.
10.4.8.4.5. tvbrange:le_uint64()
get a Little Endian unsigned 64 bit integer from a TvbRange. The range must be 1-8 octets long.
10.4.8.4.6. tvbrange:float()
get a Big Endian (network order) floating point number from a TvbRange. The range must be 4 or 8
octets long.
10.4.8.4.6.1. Returns
the flaoting point value
10.4.8.4.7. tvbrange:le_float()
get a Little Endian floating point number from a TvbRange. The range must be 4 or 8 octets long.
10.4.8.4.7.1. Returns
the flaoting point value
Lua Support in Wireshark
227