C# Класс ICSharpCode.SharpZipLib.Zip.Compression.DeflaterHuffman.Tree

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
freqs short[]
length byte[]
minNumCodes int
numCodes int

Открытые методы

Метод Описание
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

Описание методов

BuildCodes() публичный Метод

Build dynamic codes and lengths
public BuildCodes ( ) : void
Результат void

BuildLength() публичный Метод

public BuildLength ( int childs ) : void
childs int
Результат void

BuildTree() публичный Метод

public BuildTree ( ) : void
Результат void

CalcBLFreq() публичный Метод

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
Результат void

CheckEmpty() публичный Метод

Check that all frequencies are zero
/// At least one frequency is non-zero ///
public CheckEmpty ( ) : void
Результат void

GetEncodedLength() публичный Метод

Get encoded length
public GetEncodedLength ( ) : int
Результат int

Reset() публичный Метод

Resets the internal state of the tree
public Reset ( ) : void
Результат void

SetStaticCodes() публичный Метод

Set static codes and length
public SetStaticCodes ( short staticCodes, byte staticLengths ) : void
staticCodes short new codes
staticLengths byte length for new codes
Результат void

Tree() публичный Метод

public Tree ( DeflaterHuffman dh, int elems, int minCodes, int maxLength ) : System
dh DeflaterHuffman
elems int
minCodes int
maxLength int
Результат System

WriteSymbol() публичный Метод

public WriteSymbol ( int code ) : void
code int
Результат void

WriteTree() публичный Метод

Write tree values
public WriteTree ( Tree blTree ) : void
blTree Tree Tree to write
Результат void

Описание свойств

freqs публичное свойство

public short[] freqs
Результат short[]

length публичное свойство

public byte[] length
Результат byte[]

minNumCodes публичное свойство

public int minNumCodes
Результат int

numCodes публичное свойство

public int numCodes
Результат int