C# 클래스 NScumm.Core.Common.Huffman

Huffman bitstream decoding.
파일 보기 프로젝트 열기: scemino/nscumm 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
SetSymbols ( uint symbols = null ) : void

Modify the codes' symbols.

메소드 상세

GetSymbol() 공개 메소드

Return the next symbol in the bitstream.
public GetSymbol ( BitStream bits ) : uint
bits BitStream The bitstream.
리턴 uint

Huffman() 공개 메소드

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
리턴 System