C# Class Snappy.Sharp.SnappyDecompressor

Show file Open project: jeffesp/Snappy.Sharp Class Usage Examples

Public Methods

Method Description
Decompress ( byte compressed, int compressedOffset, int compressedSize ) : byte[]
Decompress ( byte input, int inputOffset, int inputSize, byte output, int outputOffset, int outputLimit ) : int
ReadUncompressedLength ( byte data, int offset ) : int[]

Private Methods

Method Description
CopyCopy ( byte output, int length, int opIndex, int outputLimit, int copyOffset ) : void
CopyLiteral ( byte input, int ipIndex, byte output, int opIndex, int length ) : void
DecompressTagSlow ( byte input, int ipIndex, byte output, int outputLimit, int outputOffset, int opIndex ) : int[]
IncrementalCopy ( byte source, int srcIndex, byte output, int opIndex, int length ) : void
IncrementalCopyFastPath ( byte output, int srcIndex, int opIndex, int length ) : void
UpdateSum ( byte data, int offset, int currentShift, int sum ) : int

Method Details

Decompress() public method

public Decompress ( byte compressed, int compressedOffset, int compressedSize ) : byte[]
compressed byte
compressedOffset int
compressedSize int
return byte[]

Decompress() public method

public Decompress ( byte input, int inputOffset, int inputSize, byte output, int outputOffset, int outputLimit ) : int
input byte
inputOffset int
inputSize int
output byte
outputOffset int
outputLimit int
return int

ReadUncompressedLength() public method

public ReadUncompressedLength ( byte data, int offset ) : int[]
data byte
offset int
return int[]