[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

(no description)

File Size: 871 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

param: ParagonIE_Sodium_Core32_Int32 $addend
return: ParagonIE_Sodium_Core32_Int32

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

param: int $int
return: ParagonIE_Sodium_Core32_Int32

compareInt($b = 0)   X-Ref

param: int $b
return: int

mask($m = 0)   X-Ref

param: int $m
return: ParagonIE_Sodium_Core32_Int32

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

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

mulIntFast($int)   X-Ref

param: int $int
return: ParagonIE_Sodium_Core32_Int32

mulInt32Fast(ParagonIE_Sodium_Core32_Int32 $right)   X-Ref

param: ParagonIE_Sodium_Core32_Int32 $right
return: ParagonIE_Sodium_Core32_Int32

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

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

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

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

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

param: ParagonIE_Sodium_Core32_Int32 $b
return: ParagonIE_Sodium_Core32_Int32

isGreaterThan($b = 0)   X-Ref

param: int $b
return: bool

isLessThanInt($b = 0)   X-Ref

param: int $b
return: bool

rotateLeft($c = 0)   X-Ref

param: int $c
return: ParagonIE_Sodium_Core32_Int32

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

param: int $c
return: ParagonIE_Sodium_Core32_Int32

setUnsignedInt($bool = false)   X-Ref

param: bool $bool
return: self

shiftLeft($c = 0)   X-Ref

param: int $c
return: ParagonIE_Sodium_Core32_Int32

shiftRight($c = 0)   X-Ref

param: int $c
return: ParagonIE_Sodium_Core32_Int32

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

param: int $int
return: ParagonIE_Sodium_Core32_Int32

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

param: ParagonIE_Sodium_Core32_Int32 $b
return: ParagonIE_Sodium_Core32_Int32

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

param: ParagonIE_Sodium_Core32_Int32 $b
return: ParagonIE_Sodium_Core32_Int32

fromInt($signed)   X-Ref

param: int $signed
return: self

fromString($string)   X-Ref

param: string $string
return: self

fromReverseString($string)   X-Ref

param: string $string
return: self

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: Tue Oct 22 08:20:01 2019 Cross-referenced by PHPXref 0.7