C# Class Alexandria.Engines.Sciagi.ResourceDecompressor

Handles decompression for Resource data.
Mostrar archivo Open project: Burton-Radons/Alexandria Class Usage Examples

Private Properties

Property Type Description
CheckEnd void
DecompressHuffman byte[]
DecompressLZS byte[]
ReadHuffmanCodeMSB int
ReadLZSRunLength int
ResourceDecompressor System
Write void
WriteMemory void

Public Methods

Method Description
Decompress ( Stream input, int compressedSize, int uncompressedSize, CompressionMethod compressionMode ) : byte[]

Decompress input data.

Private Methods

Method Description
CheckEnd ( ) : void
DecompressHuffman ( ) : byte[]
DecompressLZS ( ) : byte[]
ReadHuffmanCodeMSB ( byte nodes ) : int
ReadLZSRunLength ( ) : int
ResourceDecompressor ( Stream input, int compressedSize, int uncompressedSize ) : System
Write ( byte value ) : void
WriteMemory ( int offset, int count ) : void

Copy a portion of the output buffer onto itself.

Method Details

Decompress() public static method

Decompress input data.
public static Decompress ( Stream input, int compressedSize, int uncompressedSize, CompressionMethod compressionMode ) : byte[]
input Stream
compressedSize int
uncompressedSize int
compressionMode CompressionMethod
return byte[]