C# Класс Nintenlord.Compressor.Compressions.LZ77

Наследование: Compression
Показать файл Открыть проект

Открытые методы

Метод Описание
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[]