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

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

Méthodes publiques

Свойство Type Description
pending DeflaterPending

Méthodes publiques

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

Private Methods

Méthode Description
Dcode ( int distance ) : int
DeflaterHuffman ( ) : System
Lcode ( int length ) : int

Method Details

BitReverse() public static méthode

Reverse the bits of a 16 bit value.
public static BitReverse ( int toReverse ) : short
toReverse int Value to reverse bits
Résultat short

CompressBlock() public méthode

Compress current buffer writing data to pending buffer
public CompressBlock ( ) : void
Résultat void

DeflaterHuffman() public méthode

Construct instance with pending buffer
public DeflaterHuffman ( DeflaterPending pending ) : System
pending DeflaterPending Pending buffer to use
Résultat System

FlushBlock() public méthode

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

FlushStoredBlock() public méthode

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

IsFull() public méthode

Get value indicating if internal buffer is full
public IsFull ( ) : bool
Résultat bool

Reset() public méthode

Reset internal state
public Reset ( ) : void
Résultat void

SendAllTrees() public méthode

Write all trees to pending buffer
public SendAllTrees ( int blTreeCodes ) : void
blTreeCodes int The number/rank of treecodes to send.
Résultat void

TallyDist() public méthode

Add distance code and length to literal and distance trees
public TallyDist ( int distance, int length ) : bool
distance int Distance code
length int Length
Résultat bool

TallyLit() public méthode

Add literal to buffer
public TallyLit ( int literal ) : bool
literal int Literal value to add to buffer.
Résultat bool

Property Details

pending public_oe property

Pending buffer to use
public DeflaterPending,ICSharpCode.SharpZipLib.Zip.Compression pending
Résultat DeflaterPending