decompress

expect open override fun decompress(in: DataInput, originalLength: Int, offset: Int, length: Int, bytes: BytesRef)

Decompress bytes that were stored between offsets offset and offset+length * in the original stream from the compressed stream in to bytes . After returning, the length of bytes (bytes.length) must be equal to length. Implementations of this method are free to resize bytes depending on their needs.

Parameters

in

the input that stores the compressed stream

originalLength

the length of the original data (before compression)

offset

bytes before this offset do not need to be decompressed

length

bytes after offset+length do not need to be decompressed

bytes

a BytesRef where to store the decompressed data