Class LZ4
Inheritance
System.Object
LZ4
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class LZ4 : object
Methods
Name |
Description |
Compress(Byte[], Int32, Int32, DataOutput, LZ4.HashTable)
|
Compress bytes[off:off+len] into out using
at most 16KB of memory. ht shouldn't be shared across threads
but can safely be reused.
|
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.
|
Decompress(DataInput, Int32, Byte[], Int32)
|
Decompress at least decompressedLen bytes into
dest[dOff] . Please note that dest must be large
enough to be able to hold all decompressed data (meaning that you
need to know the total decompressed length).
|
Extension Methods