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 http://wiki.wireshark.org/LuaAPI/Int64.
Int64 represents a 64 bit signed integer.
For details, see http://wiki.wireshark.org/LuaAPI/Int64.
Decodes an 8-byte Lua string, using given endianness, into a new Int64 object.
Since: 1.11.3
The Lua string containing a binary 64-bit integer.
If set to true then little-endian is used, if false then big-endian; if missing/nil, native host endian.
Creates a Int64 Object.
Since: 1.11.3
A number, UInt64, Int64, or string of ASCII digits to assign the value of the new Int64 (default=0).
If this is a number and the first argument was a number, then the first will be treated as a lower 32-bits, and this is the high-order 32 bit number.
Gets the max possible value.
Since: 1.11.3
Gets the min possible value.
Since: 1.11.3
Creates an Int64 object from the given hex string.
Since: 1.11.3
Encodes the Int64 number into an 8-byte Lua string, using given endianness.
Since: 1.11.3
If set to true then little-endian is used, if false then big-endian; if missing/nil, native host endian.
Creates a Int64 Object.
Since: 1.11.3
Returns a Lua number of the Int64 value - this may lose precision.
Since: 1.11.3
Returns a hex string of the Int64 value.
Since: 1.11.3
The number of hex-chars/nibbles to generate, negative means uppercase (default=16).
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
Returns a Lua number of the lower 32-bits of the Int64 value. (always positive).
Since: 1.11.3
Converts the Int64 into a string of decimal digits.
Returns the negative of the Int64, in a new Int64.
Since: 1.11.3
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
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 first Int64 is taken to the power of the second Int64, returning a new one (this may truncate the value).
Since: 1.11.3
Returns a Int64 of the bitwise 'not' operation.
Since: 1.11.3
Returns a Int64 of the bitwise 'and' operation, with the given number/Int64/UInt64. Note that multiple arguments are allowed.
Since: 1.11.3
Returns a Int64 of the bitwise 'or' operation, with the given number/Int64/UInt64. Note that multiple arguments are allowed.
Since: 1.11.3
Returns a Int64 of the bitwise 'xor' operation, with the given number/Int64/UInt64. Note that multiple arguments are allowed.
Since: 1.11.3
Returns a Int64 of the bitwise logical left-shift operation, by the given number of bits.
Since: 1.11.3
Returns a Int64 of the bitwise logical right-shift operation, by the given number of bits.
Since: 1.11.3
Returns a Int64 of the bitwise arithmetic right-shift operation, by the given number of bits.
Since: 1.11.3
Returns a Int64 of the bitwise left rotation operation, by the given number of bits (up to 63).
Since: 1.11.3
Returns a Int64 of the bitwise right rotation operation, by the given number of bits (up to 63).
Since: 1.11.3
UInt64 represents a 64 bit unsigned integer, similar to Int64.
For details, see: http://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 Lua string containing a binary 64-bit integer.
If set to true then little-endian is used, if false then big-endian; if missing/nil, native host endian.
Creates a UInt64 Object.
Since: 1.11.3
A number, UInt64, Int64, or string of digits to assign the value of the new UInt64 (default=0).
If this is a number and the first argument was a number, then the first will be treated as a lower 32-bits, and this is the high-order 32-bit number.
Gets the max possible value.
Since: 1.11.3
Gets the min possible value (i.e., 0).
Since: 1.11.3
Creates a UInt64 object from the given hex string.
Since: 1.11.3
Encodes the UInt64 number into an 8-byte Lua binary string, using given endianness.
Since: 1.11.3
If set to true then little-endian is used, if false then big-endian; if missing/nil, native host endian.
Creates a UInt64 Object.
Since: 1.11.3
Returns a Lua number of the UInt64 value - this may lose precision.
Since: 1.11.3
Converts the UInt64 into a string.
Returns a hex string of the UInt64 value.
Since: 1.11.3
The number of hex-chars/nibbles to generate, negative means uppercase (default=16).
Returns a Lua number of the higher 32-bits of the UInt64 value.
Returns a Lua number of the lower 32-bits of the UInt64 value.
Returns the UInt64, in a new UInt64, since unsigned integers can't be negated.
Since: 1.11.3
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
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 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
Returns a UInt64 of the bitwise 'not' operation.
Since: 1.11.3
Returns a UInt64 of the bitwise 'and' operation, with the given number/Int64/UInt64. Note that multiple arguments are allowed.
Since: 1.11.3
Returns a UInt64 of the bitwise 'or' operation, with the given number/Int64/UInt64. Note that multiple arguments are allowed.
Since: 1.11.3
Returns a UInt64 of the bitwise 'xor' operation, with the given number/Int64/UInt64. Note that multiple arguments are allowed.
Since: 1.11.3
Returns a UInt64 of the bitwise logical left-shift operation, by the given number of bits.
Since: 1.11.3
Returns a UInt64 of the bitwise logical right-shift operation, by the given number of bits.
Since: 1.11.3
Returns a UInt64 of the bitwise arithmetic right-shift operation, by the given number of bits.
Since: 1.11.3
Returns a UInt64 of the bitwise left rotation operation, by the given number of bits (up to 63).
Since: 1.11.3
Returns a UInt64 of the bitwise right rotation operation, by the given number of bits (up to 63).
Since: 1.11.3