\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 : array<mixed,integer>

Type

array<mixed,integer>

Methods

__construct()

__construct(integer  $value) 

Initialize the bytes array

Parameters

integer $value

init()

init(integer  $value) : \ZipStream\Bigint

Get an instance

Parameters

integer $value

Returns

\ZipStream\Bigint

fromLowHigh()

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

Fill bytes from low to high

Parameters

integer $low
integer $high

Returns

\ZipStream\Bigint

getHigh32()

getHigh32() : integer

Get high 32

Returns

integer

getValue()

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

Get value from bytes array

Parameters

integer $end
integer $length

Returns

integer

getLowFF()

getLowFF(boolean  $force = false) : float

Get low FF

Parameters

boolean $force

Returns

float

isOver32()

isOver32(boolean  $force = false) : boolean

Check if is over 32

Parameters

boolean $force

Returns

boolean

getLow32()

getLow32() : integer

Get low 32

Returns

integer

getHex64()

getHex64() : string

Get hexadecimal

Returns

string

fillBytes()

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

Fill the bytes field with int

Parameters

integer $value
integer $start
integer $count