Class LZ4
LZ4 compression and decompression routines.
http://code.google.com/p/lz4/ http://fastcompression.blogspot.fr/p/lz4.html
Inheritance
Namespace: Lucene.Net.Codecs.Compressing
Assembly: Lucene.Net.dll
Syntax
public sealed class LZ4 : object
Methods
| Improve this Doc View SourceCompress(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.
Declaration
public static void Compress(byte[] bytes, int off, int len, DataOutput out, LZ4.HashTable ht)
Parameters
Type | Name | Description |
---|---|---|
System. |
bytes | |
System. |
off | |
System. |
len | |
Data |
out | |
LZ4. |
ht |
CompressHC(Byte[], Int32, Int32, DataOutput, LZ4.HCHashTable)
Compress bytes[off:off+len]
into out
. Compared to
Compress(Byte[], Int32, Int32, Dataht
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. |
src | |
System. |
srcOff | |
System. |
srcLen | |
Data |
out | |
LZ4. |
ht |
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).
Declaration
public static int Decompress(DataInput compressed, int decompressedLen, byte[] dest, int dOff)
Parameters
Type | Name | Description |
---|---|---|
Data |
compressed | |
System. |
decompressedLen | |
System. |
dest | |
System. |
dOff |
Returns
Type | Description |
---|---|
System. |