Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

(no description)

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

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

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

param: int $value
return: Bigint

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

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

getHigh32()   X-Ref
Get high 32

return: int

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

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

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

param: bool $force
return: float

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

param: bool $force
return: bool

getLow32()   X-Ref
Get low 32

return: int

getHex64()   X-Ref
Get hexadecimal

return: string

add(Bigint $other)   X-Ref
Add

param: Bigint $other
return: Bigint