ByteBuffersDataOutput

constructor(minBitsPerBlock: Int = DEFAULT_MIN_BITS_PER_BLOCK, maxBitsPerBlock: Int = DEFAULT_MAX_BITS_PER_BLOCK, blockAllocate: (Int) -> ByteBuffer = ALLOCATE_BB_ON_HEAP, blockReuse: (ByteBuffer) -> Unit = NO_REUSE)


constructor(expectedSize: Long)

Create a new output, suitable for writing a file of around expectedSize bytes.

Memory allocation will be optimized based on the expectedSize hint, so that there is less overhead for larger files.

Parameters

expectedSize

estimated size of the output file