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

Afficher le fichier Open project: icsharpcode/SharpZipLib Class Usage Examples

Méthodes publiques

Свойство Type Description
freqs short[]
length byte[]
minNumCodes int
numCodes int

Méthodes publiques

Méthode 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 méthode

Build dynamic codes and lengths
public BuildCodes ( ) : void
Résultat void

BuildLength() public méthode

public BuildLength ( int childs ) : void
childs int
Résultat void

BuildTree() public méthode

public BuildTree ( ) : void
Résultat void

CalcBLFreq() public méthode

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
Résultat void

CheckEmpty() public méthode

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

GetEncodedLength() public méthode

Get encoded length
public GetEncodedLength ( ) : int
Résultat int

Reset() public méthode

Resets the internal state of the tree
public Reset ( ) : void
Résultat void

SetStaticCodes() public méthode

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

Tree() public méthode

public Tree ( DeflaterHuffman dh, int elems, int minCodes, int maxLength ) : System
dh DeflaterHuffman
elems int
minCodes int
maxLength int
Résultat System

WriteSymbol() public méthode

public WriteSymbol ( int code ) : void
code int
Résultat void

WriteTree() public méthode

Write tree values
public WriteTree ( Tree blTree ) : void
blTree Tree Tree to write
Résultat void

Property Details

freqs public_oe property

public short[] freqs
Résultat short[]

length public_oe property

public byte[] length
Résultat byte[]

minNumCodes public_oe property

public int minNumCodes
Résultat int

numCodes public_oe property

public int numCodes
Résultat int