Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

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

Defines 1 class

Bigint:: (11 methods):
  __construct()
  fillBytes()
  init()
  fromLowHigh()
  getHigh32()
  getValue()
  getLowFF()
  isOver32()
  getLow32()
  getHex64()
  add()


Class: Bigint  - X-Ref

__construct(int $value = 0)   X-Ref
Initialize the bytes array

param: int $value

fillBytes(int $value, int $start, int $count)   X-Ref
Fill the bytes field with int

return: void
param: int $value
param: int $start
param: int $count

init(int $value = 0)   X-Ref
Get an instance

return: Bigint
param: int $value

fromLowHigh(int $low, int $high)   X-Ref
Fill bytes from low to high

return: Bigint
param: int $low
param: int $high

getHigh32()   X-Ref
Get high 32

return: int

getValue(int $end = 0, int $length = 8)   X-Ref
Get value from bytes array

return: int
param: int $end
param: int $length

getLowFF(bool $force = false)   X-Ref
Get low FF

return: float
param: bool $force

isOver32(bool $force = false)   X-Ref
Check if is over 32

return: bool
param: bool $force

getLow32()   X-Ref
Get low 32

return: int

getHex64()   X-Ref
Get hexadecimal

return: string

add(Bigint $other)   X-Ref
Add

return: Bigint
param: Bigint $other