compressWithDictionary

fun compressWithDictionary(bytes: ByteArray, dictOff: Int, dictLen: Int, len: Int, out: DataOutput, ht: LZ4.HashTable)

Compress bytes[dictOff+dictLen:dictOff+dictLen+len] into out using at most 16kB of memory. bytes[dictOff:dictOff+dictLen] will be used as a dictionary. dictLen must not be greater than 64kB, the maximum window size.

ht shouldn't be shared across threads but can safely be reused.