C# 클래스 Nintenlord.Compressor.Compressions.LZ77

상속: Compression
파일 보기 프로젝트 열기: Diegoisawesome/AwesomeMapEditor-old

공개 메소드들

메소드 설명
CanBeDecompressed ( byte data ) : bool

Checks if data can be uncompressed

CanBeDecompressed ( byte data, int offset ) : bool

Checks if data can be uncompressed

CanBeDecompressed ( byte source, int minSize, int maxSize ) : bool

Checks if data can be uncompressed

CanBeDecompressed ( byte data, int offset, int maxLength, int minLength ) : bool

Checks if data can be uncompressed

Compress ( byte data ) : byte[]

Compresses data with LZ77

Compress ( byte data, int offset ) : byte[]

Compresses data with LZ77

Compress ( byte data, int offset, int length ) : byte[]

Compresses data with LZ77

CompressedLength ( byte data ) : int

Gets the lenght of the compressed data

CompressedLength ( byte data, int offset ) : int

Gets the lenght of the compressed data

Decompress ( byte source, byte target ) : bool

Decompresses LZ77 data

Decompress ( byte data ) : byte[]

Decompresses LZ77 data

Decompress ( byte data, int offset ) : byte[]

Decompresses LZ77 data

DecompressedDataLenght ( byte data ) : int
DecompressedDataLenght ( byte data, int offset ) : int
GetCompressedDataLenght ( byte source ) : int

Gets the lenght of the compressed data

LZ77 ( ) : System
Scan ( byte data, int sizeMax, int sizeMin, int sizeModulus ) : int[]

Scans the data for potential LZ77 compressions

Scan ( byte data, int offset, int sizeMax, int sizeMin, int sizeModulus ) : int[]

Scans the data for potential LZ77 compressions

Scan ( byte data, int offset, int length, int sizeMax, int sizeMin, int sizeModulus ) : int[]

Scans the data for potential LZ77 compressions

메소드 상세

CanBeDecompressed() 공개 메소드

Checks if data can be uncompressed
public CanBeDecompressed ( byte data ) : bool
data byte Data with data to test
리턴 bool

CanBeDecompressed() 공개 메소드

Checks if data can be uncompressed
public CanBeDecompressed ( byte data, int offset ) : bool
data byte Data with data to test
offset int Offset of the data to test in data
리턴 bool

CanBeDecompressed() 공개 정적인 메소드

Checks if data can be uncompressed
public static CanBeDecompressed ( byte source, int minSize, int maxSize ) : bool
source byte Pointer to beginning of data
minSize int
maxSize int
리턴 bool

CanBeDecompressed() 공개 메소드

Checks if data can be uncompressed
public CanBeDecompressed ( byte data, int offset, int maxLength, int minLength ) : bool
data byte Data with data to test
offset int Offset of the data to test in data
maxLength int Maximun length the compressed data can have
minLength int Minimun length the compressed data can have
리턴 bool

Compress() 공개 메소드

Compresses data with LZ77
public Compress ( byte data ) : byte[]
data byte Data to compress
리턴 byte[]

Compress() 공개 메소드

Compresses data with LZ77
public Compress ( byte data, int offset ) : byte[]
data byte Data to compress
offset int
리턴 byte[]

Compress() 공개 메소드

Compresses data with LZ77
public Compress ( byte data, int offset, int length ) : byte[]
data byte Data to compress
offset int
length int Length of the data to compress
리턴 byte[]

CompressedLength() 공개 메소드

Gets the lenght of the compressed data
public CompressedLength ( byte data ) : int
data byte Data where compressed data is
리턴 int

CompressedLength() 공개 메소드

Gets the lenght of the compressed data
public CompressedLength ( byte data, int offset ) : int
data byte Data where compressed data is
offset int The position of the data
리턴 int

Decompress() 공개 메소드

Decompresses LZ77 data
public Decompress ( byte source, byte target ) : bool
source byte Pointer to compressed data
target byte Pointer to where uncompressed data goes
리턴 bool

Decompress() 공개 메소드

Decompresses LZ77 data
public Decompress ( byte data ) : byte[]
data byte Data where compressed data is
리턴 byte[]

Decompress() 공개 메소드

Decompresses LZ77 data
public Decompress ( byte data, int offset ) : byte[]
data byte Data where compressed data is
offset int Offset of the compressed data
리턴 byte[]

DecompressedDataLenght() 공개 메소드

public DecompressedDataLenght ( byte data ) : int
data byte
리턴 int

DecompressedDataLenght() 공개 메소드

public DecompressedDataLenght ( byte data, int offset ) : int
data byte
offset int
리턴 int

GetCompressedDataLenght() 공개 정적인 메소드

Gets the lenght of the compressed data
public static GetCompressedDataLenght ( byte source ) : int
source byte Pointer to the data to check
리턴 int

LZ77() 공개 메소드

public LZ77 ( ) : System
리턴 System

Scan() 공개 메소드

Scans the data for potential LZ77 compressions
public Scan ( byte data, int sizeMax, int sizeMin, int sizeModulus ) : int[]
data byte Data to scan
sizeMax int Maximun size of uncompressed data allowed
sizeMin int Minimun size of uncompressed data allowed
sizeModulus int Modulus for size of uncompressed data
리턴 int[]

Scan() 공개 메소드

Scans the data for potential LZ77 compressions
public Scan ( byte data, int offset, int sizeMax, int sizeMin, int sizeModulus ) : int[]
data byte Data to scan
offset int Starting offset of are to scan
sizeMax int Maximun size of uncompressed data allowed
sizeMin int Minimun size of uncompressed data allowed
sizeModulus int Modulus for size of uncompressed data
리턴 int[]

Scan() 공개 메소드

Scans the data for potential LZ77 compressions
public Scan ( byte data, int offset, int length, int sizeMax, int sizeMin, int sizeModulus ) : int[]
data byte Data to scan
offset int Starting offset of are to scan
length int Size of the area to scan
sizeMax int Maximun size of uncompressed data allowed
sizeMin int Minimun size of uncompressed data allowed
sizeModulus int Modulus for size of uncompressed data
리턴 int[]