Class Decompressor
A decompressor.
Inheritance
System.Object
Decompressor
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Codecs.Compressing
Assembly: Lucene.Net.dll
Syntax
public abstract class Decompressor
Constructors
| Improve this Doc View SourceDecompressor()
Sole constructor, typically called from sub-classes.
Declaration
protected Decompressor()
Methods
| Improve this Doc View SourceClone()
Declaration
public abstract object Clone()
Returns
Type | Description |
---|---|
System.Object |
Decompress(DataInput, Int32, Int32, Int32, 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.
Declaration
public abstract void Decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes)
Parameters
Type | Name | Description |
---|---|---|
DataInput | in | The input that stores the compressed stream. |
System.Int32 | originalLength | The length of the original data (before compression). |
System.Int32 | offset | Bytes before this offset do not need to be decompressed. |
System.Int32 | length | Bytes after |
BytesRef | bytes | a BytesRef where to store the decompressed data. |