Encapsulates a 64-bit integer.
These are immutable. It always returns a new instance.
Methods
ParagonIE_Sodium_Core32_Int64 constructor.
__construct(array $array = array(0, 0, 0, 0),boolean $unsignedInt = false)
__toString
__toString(): string
Adds a normal integer to an int64 object
addInt(integer $int): \ParagonIE_Sodium_Core32_Int64
Adds two int64 objects
addInt64(\ParagonIE_Sodium_Core32_Int64 $addend): \ParagonIE_Sodium_Core32_Int64
compareInt
compareInt(integer $b): integer
Arguments
Response
integer
ctSelect
ctSelect(\ParagonIE_Sodium_Core32_Int64 $A,\ParagonIE_Sodium_Core32_Int64 $B): \array<int,
static
psalm-suppress
|
MixedInferredReturnType |
Throws |
- \SodiumException
- \TypeError
|
Arguments
Response
\arrayParagonIE_Sodium_Core32_Int64>
fromInt
fromInt(integer $low): self
static
Throws |
- \SodiumException
- \TypeError
|
Arguments
Response
self
fromInts
fromInts(integer $low,integer $high): self
static
Throws |
- \SodiumException
- \TypeError
|
Arguments
Response
self
fromReverseString
fromReverseString(string $string): self
static
Throws |
- \SodiumException
- \TypeError
|
Arguments
Response
self
fromString
fromString(string $string): self
static
Throws |
- \SodiumException
- \TypeError
|
Arguments
Response
self
isGreaterThan
isGreaterThan(integer $b): boolean
Arguments
Response
boolean
isLessThanInt
isLessThanInt(integer $b): boolean
Arguments
Response
boolean
mask64
mask64(integer $hi,integer $lo): \ParagonIE_Sodium_Core32_Int64
mulInt
mulInt(integer $int,integer $size): \ParagonIE_Sodium_Core32_Int64
mulInt64
mulInt64(\ParagonIE_Sodium_Core32_Int64 $int,integer $size): \ParagonIE_Sodium_Core32_Int64
mulInt64Fast
mulInt64Fast(\ParagonIE_Sodium_Core32_Int64 $right): \ParagonIE_Sodium_Core32_Int64
mulIntFast
mulIntFast(integer $int): \ParagonIE_Sodium_Core32_Int64
multiplyLong
multiplyLong(array $a,array $b,integer $baseLog2 = 16): \array<int,
Arguments
Response
\arrayint>
OR this 64-bit integer with another.
orInt64(\ParagonIE_Sodium_Core32_Int64 $b): \ParagonIE_Sodium_Core32_Int64
rotateLeft
rotateLeft(integer $c): \ParagonIE_Sodium_Core32_Int64
Rotate to the right
rotateRight(integer $c): \ParagonIE_Sodium_Core32_Int64
setUnsignedInt
setUnsignedInt(boolean $bool = false): self
shiftLeft
shiftLeft(integer $c): \ParagonIE_Sodium_Core32_Int64
shiftRight
shiftRight(integer $c): \ParagonIE_Sodium_Core32_Int64
Subtract a normal integer from an int64 object.
subInt(integer $int): \ParagonIE_Sodium_Core32_Int64
The difference between two Int64 objects.
subInt64(\ParagonIE_Sodium_Core32_Int64 $b): \ParagonIE_Sodium_Core32_Int64
toArray
toArray(): \array<int,
toInt32
toInt32(): \ParagonIE_Sodium_Core32_Int32
toInt64
toInt64(): \ParagonIE_Sodium_Core32_Int64
toReverseString
toReverseString(): string
toString
toString(): string
XOR this 64-bit integer with another.
xorInt64(\ParagonIE_Sodium_Core32_Int64 $b): \ParagonIE_Sodium_Core32_Int64
Properties
int> - four 16-bit integers
limbs :\array<int,
var
|
int> - four 16-bit integers |
Type(s)
\array
overflow
overflow :integer
unsignedInt
unsignedInt :boolean