GrowableWriter
class GrowableWriter(startBitsPerValue: Int, valueCount: Int, acceptableOverheadRatio: Float) : PackedInts.Mutable
Implements PackedInts.Mutable, but grows the bit count of the underlying packed ints on-demand.
Beware that this class will accept to set negative values but in order to do this, it will grow the number of bits per value to 64.
Properties
Functions
Link copied to clipboard
Get the long at the given index. Behavior is undefined for out-of-range indices.
Bulk get: read at least one and at most len longs starting from index * into arr[off:off+len] and return the actual number of values that have been read.
Link copied to clipboard
Return the memory usage of this object in bytes. Negative values are illegal.
Link copied to clipboard
Link copied to clipboard
Set the value at the given index in the array.
Bulk set: set at least one and at most len longs starting at off in arr into this mutable, starting at index. Returns the actual number of values that have been set.