Method CompressHC
CompressHC(Byte[], Int32, Int32, DataOutput, LZ4.HCHashTable)
Compress bytes[off:off+len]
into out
. Compared to
Compress(Byte[], Int32, Int32, DataOutput, LZ4.HashTable), this method
is slower and uses more memory (~ 256KB per thread) but should provide
better compression ratios (especially on large inputs) because it chooses
the best match among up to 256 candidates and then performs trade-offs to
fix overlapping matches. ht
shouldn't be shared across threads
but can safely be reused.
Declaration
public static void CompressHC(byte[] src, int srcOff, int srcLen, DataOutput out, LZ4.HCHashTable ht)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | src | |
System.Int32 | srcOff | |
System.Int32 | srcLen | |
DataOutput | out | |
LZ4.HCHashTable | ht |