C# 클래스 LZ4Sharp.LZ4

Static LZ4 Compression and Decompression. This is threadsafe because it creates new instances of the compression/decompression classes for each method call. It is recommended to use LZ4Compressor and LZ4Decompressor for repeated compressing/decompressing for speed and less memory allocations.
파일 보기 프로젝트 열기: 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

Decompress ( byte compressed ) : byte[]
Decompress ( byte compressed, byte decompressedBuffer ) : int
Decompress ( byte compressedBuffer, byte decompressedBuffer, int compressedSize ) : int
Decompress ( byte compressedBuffer, byte decompressedBuffer, int compressedSize, int maxDecompressedSize ) : int
DecompressKnownSize ( byte compressed, byte decompressedBuffer, int decompressedSize ) : int
DecompressKnownSize ( byte compressed, byte decompressed ) : void

메소드 상세

CalculateMaxCompressedLength() 공개 정적인 메소드

Calculate the max compressed byte[] size given the size of the uncompressed byte[]
public static CalculateMaxCompressedLength ( int uncompressedLength ) : int
uncompressedLength int Length of the uncompressed data
리턴 int

Compress() 공개 정적인 메소드

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

Compress() 공개 정적인 메소드

Compress source into dest returning compressed length
public static 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 static 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

Decompress() 공개 정적인 메소드

public static Decompress ( byte compressed ) : byte[]
compressed byte
리턴 byte[]

Decompress() 공개 정적인 메소드

public static Decompress ( byte compressed, byte decompressedBuffer ) : int
compressed byte
decompressedBuffer byte
리턴 int

Decompress() 공개 정적인 메소드

public static Decompress ( byte compressedBuffer, byte decompressedBuffer, int compressedSize ) : int
compressedBuffer byte
decompressedBuffer byte
compressedSize int
리턴 int

Decompress() 공개 정적인 메소드

public static Decompress ( byte compressedBuffer, byte decompressedBuffer, int compressedSize, int maxDecompressedSize ) : int
compressedBuffer byte
decompressedBuffer byte
compressedSize int
maxDecompressedSize int
리턴 int

DecompressKnownSize() 공개 정적인 메소드

public static DecompressKnownSize ( byte compressed, byte decompressedBuffer, int decompressedSize ) : int
compressed byte
decompressedBuffer byte
decompressedSize int
리턴 int

DecompressKnownSize() 공개 정적인 메소드

public static DecompressKnownSize ( byte compressed, byte decompressed ) : void
compressed byte
decompressed byte
리턴 void