Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
ZipStream\Bigint Class Reference

Public Member Functions

 __construct (int $value=0)
 Initialize the bytes array.
 
 add (self $other)
 Add.
 
 getHex64 ()
 Get hexadecimal.
 
 getHigh32 ()
 Get high 32.
 
 getLow32 ()
 Get low 32.
 
 getLowFF (bool $force=false)
 Get low FF.
 
 getValue (int $end=0, int $length=8)
 Get value from bytes array.
 
 isOver32 (bool $force=false)
 Check if is over 32.
 

Static Public Member Functions

static fromLowHigh (int $low, int $high)
 Fill bytes from low to high.
 
static init (int $value=0)
 Get an instance.
 

Protected Member Functions

 fillBytes (int $value, int $start, int $count)
 Fill the bytes field with int.
 

Constructor & Destructor Documentation

◆ __construct()

ZipStream\Bigint::__construct ( int $value = 0)

Initialize the bytes array.

Parameters
int$value

Member Function Documentation

◆ add()

ZipStream\Bigint::add ( self $other)

Add.

Parameters
Bigint$other
Return values
Bigint

◆ fillBytes()

ZipStream\Bigint::fillBytes ( int $value,
int $start,
int $count )
protected

Fill the bytes field with int.

Parameters
int$value
int$start
int$count
Return values
void

◆ fromLowHigh()

static ZipStream\Bigint::fromLowHigh ( int $low,
int $high )
static

Fill bytes from low to high.

Parameters
int$low
int$high
Return values
Bigint

◆ getHex64()

ZipStream\Bigint::getHex64 ( )

Get hexadecimal.

Return values
string

◆ getHigh32()

ZipStream\Bigint::getHigh32 ( )

Get high 32.

Return values
int

◆ getLow32()

ZipStream\Bigint::getLow32 ( )

Get low 32.

Return values
int

◆ getLowFF()

ZipStream\Bigint::getLowFF ( bool $force = false)

Get low FF.

Parameters
bool$force
Return values
float

◆ getValue()

ZipStream\Bigint::getValue ( int $end = 0,
int $length = 8 )

Get value from bytes array.

Parameters
int$end
int$length
Return values
int

◆ init()

static ZipStream\Bigint::init ( int $value = 0)
static

Get an instance.

Parameters
int$value
Return values
Bigint

◆ isOver32()

ZipStream\Bigint::isOver32 ( bool $force = false)

Check if is over 32.

@psalm-suppress ArgumentTypeCoercion

Parameters
bool$force
Return values
bool

The documentation for this class was generated from the following file: