Decoder
interface Decoder
A decoder for packed integers.
Functions
Link copied to clipboard
The minimum number of byte blocks to encode in a single iteration, when using byte encoding.
Link copied to clipboard
The number of values that can be stored in .byteBlockCount byte blocks.
Link copied to clipboard
abstract fun decode(blocks: ByteArray, blocksOffset: Int, values: IntArray, valuesOffset: Int, iterations: Int)
abstract fun decode(blocks: ByteArray, blocksOffset: Int, values: LongArray, valuesOffset: Int, iterations: Int)
Read 8 * iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.
abstract fun decode(blocks: LongArray, blocksOffset: Int, values: IntArray, valuesOffset: Int, iterations: Int)
abstract fun decode(blocks: LongArray, blocksOffset: Int, values: LongArray, valuesOffset: Int, iterations: Int)
Read iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.
Link copied to clipboard
The minimum number of long blocks to encode in a single iteration, when using long encoding.
Link copied to clipboard
The number of values that can be stored in .longBlockCount long blocks.