Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

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

(no description)

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

Defines 1 class

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


Class: Bigint  - X-Ref

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

param: int $value

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(self $other)   X-Ref
Add

param: Bigint $other
return: Bigint

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