C# Class CrystalMpq.HuffmanTree

Mostra file Open project: sgraf812/crystalmpq

Public Methods

Method Description
CompressBlock ( byte inBuffer, int index, int count, byte outBuffer ) : int
DecompressBlock ( byte inBuffer, int index, int count, byte outBuffer ) : void

Private Methods

Method Description
BuildList ( byte data ) : void
BuildTree ( byte data ) : void
ClearCache ( ) : void
GetNewItem ( int value, int weight ) : HuffmanItem
Reset ( ) : void

Method Details

CompressBlock() public static method

public static CompressBlock ( byte inBuffer, int index, int count, byte outBuffer ) : int
inBuffer byte
index int
count int
outBuffer byte
return int

DecompressBlock() public method

public DecompressBlock ( byte inBuffer, int index, int count, byte outBuffer ) : void
inBuffer byte
index int
count int
outBuffer byte
return void