RLEBitPackedHybrid
FinalYes
Methods
- __construct() : mixed
- decodeBitPacked() : void
- $output is passed by reference as a performance optimization, otherwise we would need to return the array and merge it, which creates unnecessary performance impact.
- decodeHybrid() : array<string|int, mixed>
- decodeRLE() : void
- encodeBitPacked() : void
- encodeHybrid() : void
- encodeRLE() : void
Methods
__construct()
public
__construct() : mixed
decodeBitPacked()
$output is passed by reference as a performance optimization, otherwise we would need to return the array and merge it, which creates unnecessary performance impact.
public
decodeBitPacked(BinaryReader $reader, int $bitWidth, int $varInt, int $maxItems, array<string|int, mixed> &$output) : void
Parameters
- $reader : BinaryReader
- $bitWidth : int
- $varInt : int
- $maxItems : int
- $output : array<string|int, mixed>
decodeHybrid()
public
decodeHybrid(BinaryReader $reader, int $bitWidth, int $maxItems) : array<string|int, mixed>
Parameters
- $reader : BinaryReader
- $bitWidth : int
- $maxItems : int
Return values
array<string|int, mixed>decodeRLE()
public
decodeRLE(BinaryReader $reader, int $bitWidth, int $intVar, int $maxItems, array<string|int, mixed> &$output) : void
Parameters
- $reader : BinaryReader
- $bitWidth : int
- $intVar : int
- $maxItems : int
- $output : array<string|int, mixed>
encodeBitPacked()
public
encodeBitPacked(BinaryWriter $writer, int $bitWidth, array<string|int, int> $values) : void
Parameters
- $writer : BinaryWriter
- $bitWidth : int
- $values : array<string|int, int>
encodeHybrid()
public
encodeHybrid(BinaryWriter $writer, int $bitWidth, array<string|int, int> $values) : void
Parameters
- $writer : BinaryWriter
- $bitWidth : int
- $values : array<string|int, int>
encodeRLE()
public
encodeRLE(BinaryWriter $writer, int $bitWidth, array<string|int, int> $values) : void
Parameters
- $writer : BinaryWriter
- $bitWidth : int
- $values : array<string|int, int>