C# Class FirstFloor.ModernUI.Helpers.Lzf

Improved C# LZF Compressor, a very small data compression library. The compression algorithm is extremely fast.
ファイルを表示 Open project: gro-ove/actools

Public Methods

Method Description
Compress ( byte input ) : byte[]
Compress ( byte input, int inputLength, byte output, int outputLength ) : int

Compresses the data using LibLZF algorithm.

Compress ( byte input, int inputLength, Stream output ) : void

Compresses the data using LibLZF algorithm.

Decompress ( byte input, int offset, int count ) : byte[]

When decompressed size is unknown.

Decompress ( byte input, int inputOffset, int inputLength, byte output, int outputLength ) : int

Decompresses the data using LibLZF algorithm.

Method Details

Compress() public static method

public static Compress ( byte input ) : byte[]
input byte
return byte[]

Compress() public static method

Compresses the data using LibLZF algorithm.
public static Compress ( byte input, int inputLength, byte output, int outputLength ) : int
input byte Reference to the data to compress.
inputLength int Lenght of the data to compress.
output byte Reference to a buffer which will contain the compressed data.
outputLength int Lenght of the compression buffer (should be bigger than the input buffer).
return int

Compress() public static method

Compresses the data using LibLZF algorithm.
public static Compress ( byte input, int inputLength, Stream output ) : void
input byte Reference to the data to compress.
inputLength int Lenght of the data to compress.
output Stream Output stream with compressed data.
return void

Decompress() public static method

When decompressed size is unknown.
public static Decompress ( byte input, int offset, int count ) : byte[]
input byte Compressed data.
offset int Start of compressed data in array.
count int Size of compressed data.
return byte[]

Decompress() public static method

Decompresses the data using LibLZF algorithm.
public static Decompress ( byte input, int inputOffset, int inputLength, byte output, int outputLength ) : int
input byte Reference to the data to decompress
inputOffset int Starting offset
inputLength int Length of the data to decompress
output byte Reference to a buffer which will contain the decompressed data
outputLength int The size of the decompressed archive in the output buffer
return int