Flow PHP

BitWidth

FinalYes

Constants

MAX_PACKED_IN_ACCUMULATOR  : int = 56
Packing through one int accumulator holds the value's bits plus up to 7 pending bits, which must stay below the sign bit: 56 + 7 = 63.

Methods

calculate()  : int
fromArray()  : int
toBytes()  : array<string|int, int>

Constants

MAX_PACKED_IN_ACCUMULATOR

Packing through one int accumulator holds the value's bits plus up to 7 pending bits, which must stay below the sign bit: 56 + 7 = 63.

public int MAX_PACKED_IN_ACCUMULATOR = 56

Methods

calculate()

public static calculate(int $value) : int
Parameters
$value : int
Return values
int

fromArray()

public static fromArray(array<string|int, int> $ints) : int
Parameters
$ints : array<string|int, int>
Return values
int

toBytes()

public static toBytes(int $value, int $bitWidth) : array<string|int, int>
Parameters
$value : int
$bitWidth : int
Return values
array<string|int, int>
On this page

Search results