C# Class Nintenlord.GBA.Compressions.Malias2

Show file Open project: Jdbye/Telefang-2-English-Translation-Project

Public Methods

Method Description
Decompress ( byte source, byte target ) : bool

Decompresses Malias2 data

Decompress ( byte source ) : byte[]

Decompresses Malias2 data

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

Decompresses Malias2 data

Scan ( BinaryReader br, int offset, int amount, int sizeMultible, int minSize, int maxSize ) : int[]

Scans the stream for potential LZ77 compressions

Scan ( byte pointer, int amount, int sizeMultible, int minSize, int maxSize ) : int[]

Scans an area in memory for potential LZ77 compressions

Scan ( byte data, int offset, int amount, int sizeMultible, int minSize, int maxSize ) : int[]

Scans the data for potential LZ77 compressions

Method Details

Decompress() public static method

Decompresses Malias2 data
public static Decompress ( byte source, byte target ) : bool
source byte Pointer to compressed data
target byte Pointer to where uncompressed data goes
return bool

Decompress() public static method

Decompresses Malias2 data
public static Decompress ( byte source ) : byte[]
source byte Pointer to data to decompress
return byte[]

Decompress() public static method

Decompresses Malias2 data
public static Decompress ( byte data, int offset ) : byte[]
data byte Data where compressed data is
offset int Offset of the compressed data
return byte[]

Scan() public static method

Scans the stream for potential LZ77 compressions
public static Scan ( BinaryReader br, int offset, int amount, int sizeMultible, int minSize, int maxSize ) : int[]
br System.IO.BinaryReader Stream to scan
offset int
amount int
sizeMultible int
minSize int
maxSize int
return int[]

Scan() public static method

Scans an area in memory for potential LZ77 compressions
public static Scan ( byte pointer, int amount, int sizeMultible, int minSize, int maxSize ) : int[]
pointer byte Pointer to start of area to scan
amount int Size of the area to scan in bytes
sizeMultible int
minSize int
maxSize int
return int[]

Scan() public static method

Scans the data for potential LZ77 compressions
public static Scan ( byte data, int offset, int amount, int sizeMultible, int minSize, int maxSize ) : int[]
data byte Data to scan
offset int Starting offset of are to scan
amount int Size of the area to scan
sizeMultible int
minSize int
maxSize int
return int[]