Public Member Functions | |
DeflaterHuffman (DeflaterPending pending) | |
Construct instance with pending buffer. | |
void | Reset () |
Reset internal state. | |
void | SendAllTrees (int blTreeCodes) |
Write all trees to pending buffer. | |
void | CompressBlock () |
Compress current buffer writing data to pending buffer. | |
void | FlushStoredBlock (byte[] stored, int storedOffset, int storedLength, bool lastBlock) |
Flush block to output with no compression. | |
void | FlushBlock (byte[] stored, int storedOffset, int storedLength, bool lastBlock) |
Flush block to output with compression. | |
bool | IsFull () |
Get value indicating if internal buffer is full. | |
bool | TallyLit (int lit) |
Add literal to buffer. | |
bool | TallyDist (int dist, int len) |
Add distance code and length to literal and distance trees. | |
Static Public Member Functions | |
static short | BitReverse (int toReverse) |
Reverse the bits of a 16 bit value. | |
Public Attributes | |
DeflaterPending | pending |
Pending buffer to use. | |
Private Member Functions | |
int | Lcode (int len) |
int | Dcode (int distance) |
Static Private Member Functions | |
static | DeflaterHuffman () |
Private Attributes | |
Tree | literalTree |
Tree | distTree |
Tree | blTree |
short[] | d_buf |
byte[] | l_buf |
int | last_lit |
int | extra_bits |
Static Private Attributes | |
static int | BUFSIZE = 1 << (DeflaterConstants.DEFAULT_MEM_LEVEL + 6) |
static int | LITERAL_NUM = 286 |
static int | DIST_NUM = 30 |
static int | BITLEN_NUM = 19 |
static int | REP_3_6 = 16 |
static int | REP_3_10 = 17 |
static int | REP_11_138 = 18 |
static int | EOF_SYMBOL = 256 |
static int[] | BL_ORDER = { 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 } |
static byte[] | bit4Reverse |
static short[] | staticLCodes |
static byte[] | staticLLength |
static short[] | staticDCodes |
static byte[] | staticDLength |
Classes | |
class | Tree |
Not documented. More... |
This class is not thread safe. This is inherent in the API, due to the split of deflate and setInput.
author of the original java version : Jochen Hoenicke
Definition at line 53 of file DeflaterHuffman.cs.
|
Definition at line 587 of file DeflaterHuffman.cs. |
|
Construct instance with pending buffer.
Definition at line 624 of file DeflaterHuffman.cs. |
|
Reverse the bits of a 16 bit value.
Definition at line 578 of file DeflaterHuffman.cs. |
|
Compress current buffer writing data to pending buffer.
Definition at line 696 of file DeflaterHuffman.cs. |
|
Definition at line 662 of file DeflaterHuffman.cs. |
|
Flush block to output with compression.
Definition at line 769 of file DeflaterHuffman.cs. |
|
Flush block to output with no compression.
Definition at line 749 of file DeflaterHuffman.cs. |
|
Get value indicating if internal buffer is full.
Definition at line 833 of file DeflaterHuffman.cs. |
|
Definition at line 648 of file DeflaterHuffman.cs. |
|
Reset internal state.
Definition at line 639 of file DeflaterHuffman.cs. |
|
Write all trees to pending buffer.
Definition at line 675 of file DeflaterHuffman.cs. |
|
Add distance code and length to literal and distance trees.
Definition at line 864 of file DeflaterHuffman.cs. |
|
Add literal to buffer.
Definition at line 843 of file DeflaterHuffman.cs. |
|
Initial value: { 0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15 } Definition at line 65 of file DeflaterHuffman.cs. |
|
Definition at line 58 of file DeflaterHuffman.cs. |
|
Definition at line 63 of file DeflaterHuffman.cs. |
|
Definition at line 561 of file DeflaterHuffman.cs. |
|
Definition at line 55 of file DeflaterHuffman.cs. |
|
Definition at line 563 of file DeflaterHuffman.cs. |
|
Definition at line 57 of file DeflaterHuffman.cs. |
|
Definition at line 561 of file DeflaterHuffman.cs. |
|
Definition at line 62 of file DeflaterHuffman.cs. |
|
Definition at line 566 of file DeflaterHuffman.cs. |
|
Definition at line 564 of file DeflaterHuffman.cs. |
|
Definition at line 565 of file DeflaterHuffman.cs. |
|
Definition at line 56 of file DeflaterHuffman.cs. |
|
Definition at line 561 of file DeflaterHuffman.cs. |
|
Pending buffer to use.
Definition at line 559 of file DeflaterHuffman.cs. Referenced by ICSharpCode::SharpZipLib::Zip::Compression::DeflaterHuffman::Tree::WriteSymbol(). |
|
Definition at line 61 of file DeflaterHuffman.cs. |
|
Definition at line 60 of file DeflaterHuffman.cs. |
|
Definition at line 59 of file DeflaterHuffman.cs. |
|
Definition at line 570 of file DeflaterHuffman.cs. |
|
Definition at line 571 of file DeflaterHuffman.cs. |
|
Definition at line 568 of file DeflaterHuffman.cs. |
|
Definition at line 569 of file DeflaterHuffman.cs. |