encode
abstract fun encode(values: LongArray, valuesOffset: Int, blocks: LongArray, blocksOffset: Int, iterations: Int)
abstract fun encode(values: IntArray, valuesOffset: Int, blocks: LongArray, blocksOffset: Int, iterations: Int)
Read iterations * valueCount() values from values, encode them and write iterations * blockCount() blocks into blocks.
Parameters
blocks
the long blocks that hold packed integer values
blocksOffset
the offset where to start writing blocks
values
the values buffer
valuesOffset
the offset where to start reading values
iterations
controls how much data to encode
abstract fun encode(values: LongArray, valuesOffset: Int, blocks: ByteArray, blocksOffset: Int, iterations: Int)
abstract fun encode(values: IntArray, valuesOffset: Int, blocks: ByteArray, blocksOffset: Int, iterations: Int)
Read iterations * valueCount() values from values, encode them and write 8 * iterations * blockCount() blocks into blocks.
Parameters
blocks
the long blocks that hold packed integer values
blocksOffset
the offset where to start writing blocks
values
the values buffer
valuesOffset
the offset where to start reading values
iterations
controls how much data to encode