\ZipStreamBigint

Summary

Methods
Properties
Constants
__construct()
init()
fromLowHigh()
getHigh32()
getValue()
getLowFF()
isOver32()
getLow32()
getHex64()
add()
No public properties found
No constants found
fillBytes()
No protected properties found
N/A
No private methods found
$bytes
N/A

Properties

$bytes

$bytes : int[]

Type

int[]

Methods

__construct()

__construct(int  $value) : mixed

Initialize the bytes array

Parameters

int $value

Returns

mixed —

init()

init(int  $value) : \ZipStream\Bigint

Get an instance

Parameters

int $value

Returns

\ZipStream\Bigint —

fromLowHigh()

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

Fill bytes from low to high

Parameters

int $low
int $high

Returns

\ZipStream\Bigint —

getHigh32()

getHigh32() : int

Get high 32

Returns

int —

getValue()

getValue(int  $end, int  $length = 8) : int

Get value from bytes array

Parameters

int $end
int $length

Returns

int —

getLowFF()

getLowFF(bool  $force = false) : float

Get low FF

Parameters

bool $force

Returns

float —

isOver32()

isOver32(bool  $force = false) : bool

Check if is over 32

Parameters

bool $force

Returns

bool —

getLow32()

getLow32() : int

Get low 32

Returns

int —

getHex64()

getHex64() : string

Get hexadecimal

Returns

string —

add()

add(\ZipStream\Bigint  $other) : \ZipStream\Bigint

Add

Parameters

\ZipStream\Bigint $other

Returns

\ZipStream\Bigint —

fillBytes()

fillBytes(int  $value, int  $start, int  $count) : void

Fill the bytes field with int

Parameters

int $value
int $start
int $count