Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 401] [Versions 310 and 402] [Versions 310 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

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