[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/sodium_compat/src/Core32/ -> Int32.php (summary)

(no description)

File Size: 872 lines (25 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ParagonIE_Sodium_Core32_Int32:: (31 methods):
  __construct()
  addInt32()
  addInt()
  compareInt()
  mask()
  multiplyLong()
  mulIntFast()
  mulInt32Fast()
  mulInt()
  mulInt32()
  orInt32()
  isGreaterThan()
  isLessThanInt()
  rotateLeft()
  rotateRight()
  setUnsignedInt()
  shiftLeft()
  shiftRight()
  subInt()
  subInt32()
  xorInt32()
  fromInt()
  fromString()
  fromReverseString()
  toArray()
  toString()
  toInt()
  toInt32()
  toInt64()
  toReverseString()
  __toString()


Class: ParagonIE_Sodium_Core32_Int32  - X-Ref

Class ParagonIE_Sodium_Core32_Int32

Encapsulates a 32-bit integer.

These are immutable. It always returns a new instance.
__construct($array = array(0, 0)   X-Ref
ParagonIE_Sodium_Core32_Int32 constructor.

param: array $array
param: bool $unsignedInt

addInt32(ParagonIE_Sodium_Core32_Int32 $addend)   X-Ref
Adds two int32 objects

return: ParagonIE_Sodium_Core32_Int32
param: ParagonIE_Sodium_Core32_Int32 $addend

addInt($int)   X-Ref
Adds a normal integer to an int32 object

return: ParagonIE_Sodium_Core32_Int32
param: int $int

compareInt($b = 0)   X-Ref

return: int
param: int $b

mask($m = 0)   X-Ref

return: ParagonIE_Sodium_Core32_Int32
param: int $m

multiplyLong(array $a, array $b, $baseLog2 = 16)   X-Ref

return: array<int, int>
param: array<int, int> $a
param: array<int, int> $b
param: int $baseLog2

mulIntFast($int)   X-Ref

return: ParagonIE_Sodium_Core32_Int32
param: int $int

mulInt32Fast(ParagonIE_Sodium_Core32_Int32 $right)   X-Ref

return: ParagonIE_Sodium_Core32_Int32
param: ParagonIE_Sodium_Core32_Int32 $right

mulInt($int = 0, $size = 0)   X-Ref

return: ParagonIE_Sodium_Core32_Int32
param: int $int
param: int $size

mulInt32(ParagonIE_Sodium_Core32_Int32 $int, $size = 0)   X-Ref

return: ParagonIE_Sodium_Core32_Int32
param: ParagonIE_Sodium_Core32_Int32 $int
param: int $size

orInt32(ParagonIE_Sodium_Core32_Int32 $b)   X-Ref
OR this 32-bit integer with another.

return: ParagonIE_Sodium_Core32_Int32
param: ParagonIE_Sodium_Core32_Int32 $b

isGreaterThan($b = 0)   X-Ref

return: bool
param: int $b

isLessThanInt($b = 0)   X-Ref

return: bool
param: int $b

rotateLeft($c = 0)   X-Ref

return: ParagonIE_Sodium_Core32_Int32
param: int $c

rotateRight($c = 0)   X-Ref
Rotate to the right

return: ParagonIE_Sodium_Core32_Int32
param: int $c

setUnsignedInt($bool = false)   X-Ref

return: self
param: bool $bool

shiftLeft($c = 0)   X-Ref

return: ParagonIE_Sodium_Core32_Int32
param: int $c

shiftRight($c = 0)   X-Ref

return: ParagonIE_Sodium_Core32_Int32
param: int $c

subInt($int)   X-Ref
Subtract a normal integer from an int32 object.

return: ParagonIE_Sodium_Core32_Int32
param: int $int

subInt32(ParagonIE_Sodium_Core32_Int32 $b)   X-Ref
Subtract two int32 objects from each other

return: ParagonIE_Sodium_Core32_Int32
param: ParagonIE_Sodium_Core32_Int32 $b

xorInt32(ParagonIE_Sodium_Core32_Int32 $b)   X-Ref
XOR this 32-bit integer with another.

return: ParagonIE_Sodium_Core32_Int32
param: ParagonIE_Sodium_Core32_Int32 $b

fromInt($signed)   X-Ref

return: self
param: int $signed

fromString($string)   X-Ref

return: self
param: string $string

fromReverseString($string)   X-Ref

return: self
param: string $string

toArray()   X-Ref

return: array<int, int>

toString()   X-Ref

return: string

toInt()   X-Ref

return: int

toInt32()   X-Ref

return: ParagonIE_Sodium_Core32_Int32

toInt64()   X-Ref

return: ParagonIE_Sodium_Core32_Int64

toReverseString()   X-Ref

return: string

__toString()   X-Ref

return: string



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1