C# 클래스 LZ4Sharp.LZ4Compressor32

Class for compressing a byte array into an LZ4 byte array.
상속: ILZ4Compressor
파일 보기 프로젝트 열기: stangelandcl/LZ4Sharp

공개 메소드들

메소드 설명
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

LZ4Compressor32 ( ) : System

비공개 메소드들

메소드 설명
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

메소드 상세

CalculateMaxCompressedLength() 공개 메소드

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
리턴 int

Compress() 공개 메소드

public Compress ( byte source ) : byte[]
source byte
리턴 byte[]

Compress() 공개 메소드

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
리턴 int

Compress() 공개 메소드

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
리턴 int

LZ4Compressor32() 공개 메소드

public LZ4Compressor32 ( ) : System
리턴 System