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

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

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

Свойство Тип Описание
pending DeflaterPending

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

Метод Описание
BitReverse ( int toReverse ) : short

Reverse the bits of a 16 bit value.

CompressBlock ( ) : void

Compress current buffer writing data to pending buffer

DeflaterHuffman ( DeflaterPending pending ) : System

Construct instance with pending buffer

FlushBlock ( byte stored, int storedOffset, int storedLength, bool lastBlock ) : void

Flush block to output with compression

FlushStoredBlock ( byte stored, int storedOffset, int storedLength, bool lastBlock ) : void

Flush block to output with no compression

IsFull ( ) : bool

Get value indicating if internal buffer is full

Reset ( ) : void

Reset internal state

SendAllTrees ( int blTreeCodes ) : void

Write all trees to pending buffer

TallyDist ( int distance, int length ) : bool

Add distance code and length to literal and distance trees

TallyLit ( int literal ) : bool

Add literal to buffer

Приватные методы

Метод Описание
Dcode ( int distance ) : int
DeflaterHuffman ( ) : System
Lcode ( int length ) : int

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

BitReverse() публичный статический Метод

Reverse the bits of a 16 bit value.
public static BitReverse ( int toReverse ) : short
toReverse int Value to reverse bits
Результат short

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

Compress current buffer writing data to pending buffer
public CompressBlock ( ) : void
Результат void

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

Construct instance with pending buffer
public DeflaterHuffman ( DeflaterPending pending ) : System
pending DeflaterPending Pending buffer to use
Результат System

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

Flush block to output with compression
public FlushBlock ( byte stored, int storedOffset, int storedLength, bool lastBlock ) : void
stored byte Data to flush
storedOffset int Index of first byte to flush
storedLength int Count of bytes to flush
lastBlock bool True if this is the last block
Результат void

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

Flush block to output with no compression
public FlushStoredBlock ( byte stored, int storedOffset, int storedLength, bool lastBlock ) : void
stored byte Data to write
storedOffset int Index of first byte to write
storedLength int Count of bytes to write
lastBlock bool True if this is the last block
Результат void

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

Get value indicating if internal buffer is full
public IsFull ( ) : bool
Результат bool

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

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

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

Write all trees to pending buffer
public SendAllTrees ( int blTreeCodes ) : void
blTreeCodes int The number/rank of treecodes to send.
Результат void

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

Add distance code and length to literal and distance trees
public TallyDist ( int distance, int length ) : bool
distance int Distance code
length int Length
Результат bool

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

Add literal to buffer
public TallyLit ( int literal ) : bool
literal int Literal value to add to buffer.
Результат bool

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

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

Pending buffer to use
public DeflaterPending,ICSharpCode.SharpZipLib.Zip.Compression pending
Результат DeflaterPending