ICSharpCode::SharpZipLib::Zip::Compression::InflaterHuffmanTree Class Reference

Huffman tree used for inflation. More...

List of all members.

Public Member Functions

 InflaterHuffmanTree (byte[] codeLengths)
 Constructs a Huffman tree from the array of code lengths.
int GetSymbol (StreamManipulator input)
 Reads the next symbol from input. The symbol is encoded using the huffman tree.

Static Public Attributes

static InflaterHuffmanTree defLitLenTree
 Literal length tree.
static InflaterHuffmanTree defDistTree
 Distance tree.

Private Member Functions

void BuildTree (byte[] codeLengths)

Static Private Member Functions

static InflaterHuffmanTree ()

Private Attributes

short[] tree

Static Private Attributes

static int MAX_BITLEN = 15


Detailed Description

Huffman tree used for inflation.

Definition at line 48 of file InflaterHuffmanTree.cs.


Constructor & Destructor Documentation

static ICSharpCode::SharpZipLib::Zip::Compression::InflaterHuffmanTree::InflaterHuffmanTree  )  [inline, static, private]
 

Definition at line 63 of file InflaterHuffmanTree.cs.

ICSharpCode::SharpZipLib::Zip::Compression::InflaterHuffmanTree::InflaterHuffmanTree byte[]  codeLengths  )  [inline]
 

Constructs a Huffman tree from the array of code lengths.

Parameters:
codeLengths the array of code lengths

Definition at line 99 of file InflaterHuffmanTree.cs.


Member Function Documentation

void ICSharpCode::SharpZipLib::Zip::Compression::InflaterHuffmanTree::BuildTree byte[]  codeLengths  )  [inline, private]
 

Definition at line 104 of file InflaterHuffmanTree.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::InflaterHuffmanTree::GetSymbol StreamManipulator  input  )  [inline]
 

Reads the next symbol from input. The symbol is encoded using the huffman tree.

Parameters:
input input the input source.
Returns:
the next symbol, or -1 if not enough input is available.

Definition at line 186 of file InflaterHuffmanTree.cs.

References ICSharpCode::SharpZipLib::Zip::Compression::Streams::StreamManipulator::AvailableBits, ICSharpCode::SharpZipLib::Zip::Compression::Streams::StreamManipulator::DropBits(), and ICSharpCode::SharpZipLib::Zip::Compression::Streams::StreamManipulator::PeekBits().


Member Data Documentation

InflaterHuffmanTree ICSharpCode::SharpZipLib::Zip::Compression::InflaterHuffmanTree::defDistTree [static]
 

Distance tree.

Definition at line 61 of file InflaterHuffmanTree.cs.

InflaterHuffmanTree ICSharpCode::SharpZipLib::Zip::Compression::InflaterHuffmanTree::defLitLenTree [static]
 

Literal length tree.

Definition at line 56 of file InflaterHuffmanTree.cs.

int ICSharpCode::SharpZipLib::Zip::Compression::InflaterHuffmanTree::MAX_BITLEN = 15 [static, private]
 

Definition at line 50 of file InflaterHuffmanTree.cs.

short [] ICSharpCode::SharpZipLib::Zip::Compression::InflaterHuffmanTree::tree [private]
 

Definition at line 51 of file InflaterHuffmanTree.cs.


The documentation for this class was generated from the following file:
Generated on Fri Jun 23 21:50:08 2006 for OblivionModTranslator by  doxygen 1.4.6-NO