PACKED

Compact format, all bits are written contiguously.

Properties

Link copied to clipboard
val id: Int

Returns the ID of the format.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
open fun byteCount(packedIntsVersion: Int, valueCount: Int, bitsPerValue: Int): Long

Computes how many byte blocks are needed to store values values of size bitsPerValue.

Link copied to clipboard
open fun isSupported(bitsPerValue: Int): Boolean

Tests whether the provided number of bits per value is supported by the format.

Link copied to clipboard
open fun longCount(packedIntsVersion: Int, valueCount: Int, bitsPerValue: Int): Int

Computes how many long blocks are needed to store values values of size bitsPerValue.

Link copied to clipboard
open fun overheadPerValue(bitsPerValue: Int): Float

Returns the overhead per value, in bits.

Link copied to clipboard
fun overheadRatio(bitsPerValue: Int): Float

Returns the overhead ratio (overhead per value / bits per value).