C# Class NScumm.Core.Common.Huffman

Huffman bitstream decoding.
Afficher le fichier Open project: scemino/nscumm Class Usage Examples

Méthodes publiques

Méthode Description
GetSymbol ( BitStream bits ) : uint

Return the next symbol in the bitstream.

Huffman ( byte maxLength, uint codeCount, uint codes, byte lengths, uint symbols = null ) : System

Creates a Huffman decoder.

Private Methods

Méthode Description
SetSymbols ( uint symbols = null ) : void

Modify the codes' symbols.

Method Details

GetSymbol() public méthode

Return the next symbol in the bitstream.
public GetSymbol ( BitStream bits ) : uint
bits BitStream The bitstream.
Résultat uint

Huffman() public méthode

Creates a Huffman decoder.
public Huffman ( byte maxLength, uint codeCount, uint codes, byte lengths, uint symbols = null ) : System
maxLength byte Maximal code length. If 0, it's searched for
codeCount uint Number of codes
codes uint The actual codes
lengths byte Lengths of the individual codes
symbols uint The symbols. If null, assume they are identical to the code indices
Résultat System