C# Class ICSharpCode.SharpZipLib.Zip.Compression.DeflaterHuffman.Tree

显示文件 Open project: icsharpcode/SharpZipLib Class Usage Examples

Public Properties

Property Type Description
freqs short[]
length byte[]
minNumCodes int
numCodes int

Public Methods

Method Description
BuildCodes ( ) : void

Build dynamic codes and lengths

BuildLength ( int childs ) : void
BuildTree ( ) : void
CalcBLFreq ( Tree blTree ) : void

Scan a literal or distance tree to determine the frequencies of the codes in the bit length tree.

CheckEmpty ( ) : void

Check that all frequencies are zero

GetEncodedLength ( ) : int

Get encoded length

Reset ( ) : void

Resets the internal state of the tree

SetStaticCodes ( short staticCodes, byte staticLengths ) : void

Set static codes and length

Tree ( DeflaterHuffman dh, int elems, int minCodes, int maxLength ) : System
WriteSymbol ( int code ) : void
WriteTree ( Tree blTree ) : void

Write tree values

Method Details

BuildCodes() public method

Build dynamic codes and lengths
public BuildCodes ( ) : void
return void

BuildLength() public method

public BuildLength ( int childs ) : void
childs int
return void

BuildTree() public method

public BuildTree ( ) : void
return void

CalcBLFreq() public method

Scan a literal or distance tree to determine the frequencies of the codes in the bit length tree.
public CalcBLFreq ( Tree blTree ) : void
blTree Tree
return void

CheckEmpty() public method

Check that all frequencies are zero
/// At least one frequency is non-zero ///
public CheckEmpty ( ) : void
return void

GetEncodedLength() public method

Get encoded length
public GetEncodedLength ( ) : int
return int

Reset() public method

Resets the internal state of the tree
public Reset ( ) : void
return void

SetStaticCodes() public method

Set static codes and length
public SetStaticCodes ( short staticCodes, byte staticLengths ) : void
staticCodes short new codes
staticLengths byte length for new codes
return void

Tree() public method

public Tree ( DeflaterHuffman dh, int elems, int minCodes, int maxLength ) : System
dh DeflaterHuffman
elems int
minCodes int
maxLength int
return System

WriteSymbol() public method

public WriteSymbol ( int code ) : void
code int
return void

WriteTree() public method

Write tree values
public WriteTree ( Tree blTree ) : void
blTree Tree Tree to write
return void

Property Details

freqs public_oe property

public short[] freqs
return short[]

length public_oe property

public byte[] length
return byte[]

minNumCodes public_oe property

public int minNumCodes
return int

numCodes public_oe property

public int numCodes
return int