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, one cannot store a 64 bit integer with full precision.
For details, see https://wiki.wireshark.org/LuaAPI/Int64.
Int64
represents a 64 bit signed integer.
For details, see https://wiki.wireshark.org/LuaAPI/Int64.
Decodes an 8-byte Lua string, using given endianness, into a new Int64
object.
Since: 1.11.3
The Int64
object created, or nil on failure.
Creates a Int64
Object.
Since: 1.11.3
UInt64
, Int64
, or string of ASCII digits
to assign the value of the new Int64
(default=0).
The new Int64
object.
Creates an Int64
object from the given hex string.
Since: 1.11.3
The new Int64
object.
Encodes the Int64
number into an 8-byte Lua string, using given endianness.
Since: 1.11.3
The Lua string.
Returns a Lua number of the Int64
value - this may lose precision.
Since: 1.11.3
The Lua number.
Returns a hex string of the Int64
value.
Since: 1.11.3
The string hex.
Returns a Lua number of the higher 32-bits of the Int64
value. (negative Int64
will return a negative Lua number).
Since: 1.11.3
The Lua number.
Returns a Lua number of the lower 32-bits of the Int64
value. (always positive).
Since: 1.11.3
The Lua number.
Adds two Int64
together and returns a new one (this may wrap the value).
Since: 1.11.3
Subtracts two Int64
and returns a new one (this may wrap the value).
Since: 1.11.3
Multiplies two Int64
and returns a new one (this may truncate the value).
Since: 1.11.3
Divides two Int64
and returns a new one (integer divide, no remainder).
Trying to divide by zero results in a Lua error.
Since: 1.11.3
The Int64
object.
Divides two Int64
and returns a new one of the remainder.
Trying to modulo by zero results in a Lua error.
Since: 1.11.3
The Int64
object.
The first Int64
is taken to the power of the second Int64
, returning a new
one (this may truncate the value).
Since: 1.11.3
The Int64
object.
Returns a Int64
of the bitwise 'and' operation, with the given number/Int64
/UInt64
.
Note that multiple arguments are allowed.
Since: 1.11.3
The Int64
object.
Returns a Int64
of the bitwise 'or' operation, with the given number/Int64
/UInt64
.
Note that multiple arguments are allowed.
Since: 1.11.3
The Int64
object.
Returns a Int64
of the bitwise 'xor' operation, with the given number/Int64
/UInt64
.
Note that multiple arguments are allowed.
Since: 1.11.3
The Int64
object.
Returns a Int64
of the bitwise logical left-shift operation, by the given
number of bits.
Since: 1.11.3
The Int64
object.
Returns a Int64
of the bitwise logical right-shift operation, by the
given number of bits.
Since: 1.11.3
The Int64
object.
Returns a Int64
of the bitwise arithmetic right-shift operation, by the
given number of bits.
Since: 1.11.3
The Int64
object.
Returns a Int64
of the bitwise left rotation operation, by the given number of
bits (up to 63).
Since: 1.11.3
The Int64
object.
UInt64
represents a 64 bit unsigned integer, similar to Int64
.
For details, see: https://wiki.wireshark.org/LuaAPI/Int64.
Decodes an 8-byte Lua binary string, using given endianness, into a new UInt64
object.
Since: 1.11.3
The UInt64
object created, or nil on failure.
Creates a UInt64
Object.
Since: 1.11.3
UInt64
, Int64
, or string of digits
to assign the value of the new UInt64
(default=0).
The new UInt64
object.
Creates a UInt64
object from the given hex string.
Since: 1.11.3
The new UInt64
object.
Encodes the UInt64
number into an 8-byte Lua binary string, using given endianness.
Since: 1.11.3
The Lua binary string.
Returns a Lua number of the UInt64
value - this may lose precision.
Since: 1.11.3
The Lua number.
Returns a hex string of the UInt64
value.
Since: 1.11.3
The string hex.
Returns the UInt64
, in a new UInt64
, since unsigned integers can’t be negated.
Since: 1.11.3
The UInt64
object.
Adds two UInt64
together and returns a new one (this may wrap the value).
Since: 1.11.3
Subtracts two UInt64
and returns a new one (this may wrap the value).
Since: 1.11.3
Multiplies two UInt64
and returns a new one (this may truncate the value).
Since: 1.11.3
Divides two UInt64
and returns a new one (integer divide, no remainder).
Trying to divide by zero results in a Lua error.
Since: 1.11.3
The UInt64
result.
Divides two UInt64
and returns a new one of the remainder.
Trying to modulo by zero results in a Lua error.
Since: 1.11.3
The UInt64
result.
The first UInt64
is taken to the power of the second UInt64
/number,
returning a new one (this may truncate the value).
Since: 1.11.3
The UInt64
object.
Returns a UInt64
of the bitwise 'and' operation, with the given number/Int64
/UInt64
.
Note that multiple arguments are allowed.
Since: 1.11.3
The UInt64
object.
Returns a UInt64
of the bitwise 'or' operation, with the given number/Int64
/UInt64
.
Note that multiple arguments are allowed.
Since: 1.11.3
The UInt64
object.
Returns a UInt64
of the bitwise 'xor' operation, with the given number/Int64
/UInt64
.
Note that multiple arguments are allowed.
Since: 1.11.3
The UInt64
object.
Returns a UInt64
of the bitwise logical left-shift operation, by the
given number of bits.
Since: 1.11.3
The UInt64
object.
Returns a UInt64
of the bitwise logical right-shift operation, by the
given number of bits.
Since: 1.11.3
The UInt64
object.
Returns a UInt64
of the bitwise arithmetic right-shift operation, by the
given number of bits.
Since: 1.11.3
The UInt64
object.
Returns a UInt64
of the bitwise left rotation operation, by the
given number of bits (up to 63).
Since: 1.11.3
The UInt64
object.