decode

abstract fun decode(blocks: LongArray, blocksOffset: Int, values: LongArray, valuesOffset: Int, iterations: Int)
abstract fun decode(blocks: LongArray, blocksOffset: Int, values: IntArray, valuesOffset: Int, iterations: Int)

Read iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.

Parameters

blocks

the long blocks that hold packed integer values

blocksOffset

the offset where to start reading blocks

values

the values buffer

valuesOffset

the offset where to start writing values

iterations

controls how much data to decode


abstract fun decode(blocks: ByteArray, blocksOffset: Int, values: LongArray, valuesOffset: Int, iterations: Int)
abstract fun decode(blocks: ByteArray, blocksOffset: Int, values: IntArray, valuesOffset: Int, iterations: Int)

Read 8 * iterations * blockCount() blocks from blocks, decode them and write iterations * valueCount() values into values.

Parameters

blocks

the long blocks that hold packed integer values

blocksOffset

the offset where to start reading blocks

values

the values buffer

valuesOffset

the offset where to start writing values

iterations

controls how much data to decode