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

Mostrar archivo Open project: icsharpcode/SharpZipLib Class Usage Examples

Public Properties

Property Type Description
pending DeflaterPending

Public Methods

Method 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

Method Description
Dcode ( int distance ) : int
DeflaterHuffman ( ) : System
Lcode ( int length ) : int

Method Details

BitReverse() public static method

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

CompressBlock() public method

Compress current buffer writing data to pending buffer
public CompressBlock ( ) : void
return void

DeflaterHuffman() public method

Construct instance with pending buffer
public DeflaterHuffman ( DeflaterPending pending ) : System
pending DeflaterPending Pending buffer to use
return System

FlushBlock() public method

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
return void

FlushStoredBlock() public method

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
return void

IsFull() public method

Get value indicating if internal buffer is full
public IsFull ( ) : bool
return bool

Reset() public method

Reset internal state
public Reset ( ) : void
return void

SendAllTrees() public method

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

TallyDist() public method

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

TallyLit() public method

Add literal to buffer
public TallyLit ( int literal ) : bool
literal int Literal value to add to buffer.
return bool

Property Details

pending public_oe property

Pending buffer to use
public DeflaterPending,ICSharpCode.SharpZipLib.Zip.Compression pending
return DeflaterPending