C# Class LZ4Sharp.LZ4Compressor64

Class for compressing a byte array into an LZ4 byte array.
Inheritance: ILZ4Compressor
Afficher le fichier Open project: stangelandcl/LZ4Sharp

Méthodes publiques

Méthode Description
CalculateMaxCompressedLength ( int uncompressedLength ) : int

Calculate the max compressed byte[] size given the size of the uncompressed byte[]

Compress ( byte source ) : byte[]
Compress ( byte source, byte dest ) : int

Compress source into dest returning compressed length

Compress ( byte source, int srcOffset, int count, byte dest, int dstOffset ) : int

Compress source into dest returning compressed length

LZ4Compressor64 ( ) : System

Private Methods

Méthode Description
Clear ( byte ptr, int count ) : void

TODO: test if this is faster or slower than Array.Clear.

Compress ( byte source, byte dest, int isize, int maxOutputSize ) : int
Compress64K ( byte source, byte dest, int isize, int maxOutputSize ) : int

Method Details

CalculateMaxCompressedLength() public méthode

Calculate the max compressed byte[] size given the size of the uncompressed byte[]
public CalculateMaxCompressedLength ( int uncompressedLength ) : int
uncompressedLength int Length of the uncompressed data
Résultat int

Compress() public méthode

public Compress ( byte source ) : byte[]
source byte
Résultat byte[]

Compress() public méthode

Compress source into dest returning compressed length
public Compress ( byte source, byte dest ) : int
source byte uncompressed data
dest byte array into which source will be compressed
Résultat int

Compress() public méthode

Compress source into dest returning compressed length
public Compress ( byte source, int srcOffset, int count, byte dest, int dstOffset ) : int
source byte uncompressed data
srcOffset int offset in source array where reading will start
count int count of bytes in source array to compress
dest byte array into which source will be compressed
dstOffset int start index in dest array where writing will start
Résultat int

LZ4Compressor64() public méthode

public LZ4Compressor64 ( ) : System
Résultat System