Inheritance diagram for ICSharpCode::SharpZipLib::Zip::Compression::DeflaterEngine:
Public Member Functions | |
DeflaterEngine (DeflaterPending pending) | |
Construct instance with pending buffer. | |
void | Reset () |
Reset internal state. | |
void | ResetAdler () |
Reset Adler checksum. | |
void | SetLevel (int lvl) |
Set the deflate level (0-9). | |
void | FillWindow () |
Fill the window. | |
void | SetDictionary (byte[] buffer, int offset, int length) |
Set compression dictionary. | |
bool | Deflate (bool flush, bool finish) |
Deflate drives actual compression of data. | |
void | SetInput (byte[] buf, int off, int len) |
Sets input data to be deflated. Should only be called when NeedsInput()</code> returns true. | |
bool | NeedsInput () |
Return true if input is needed via SetInput SetInput. | |
Properties | |
int | Adler |
Get current value of Adler checksum. | |
int | TotalIn |
Total data processed. | |
DeflateStrategy | Strategy |
Get/set the DeflateStrategydeflate strategy. | |
Private Member Functions | |
void | UpdateHash () |
int | InsertString () |
Inserts the current string in the head hash and returns the previous value for this hash. | |
void | SlideWindow () |
bool | FindLongestMatch (int curMatch) |
Find the best (longest) string in the window matching the string starting at strstart. | |
bool | DeflateStored (bool flush, bool finish) |
bool | DeflateFast (bool flush, bool finish) |
bool | DeflateSlow (bool flush, bool finish) |
Private Attributes | |
int | ins_h |
short[] | head |
Hashtable, hashing three characters to an index for window, so that window[index]..window[index+2] have this hash code. Note that the array should really be unsigned short, so you need to and the values with 0xffff. | |
short[] | prev |
prev[index & WMASK]</code> points to the previous index that has the same hash code as the string starting at index. This way entries with the same hash code are in a linked list. Note that the array should really be unsigned short, so you need to and the values with 0xffff. | |
int | matchStart |
int | matchLen |
bool | prevAvailable |
int | blockStart |
int | strstart |
Points to the current character in the window. | |
int | lookahead |
lookahead is the number of characters starting at strstart in window that are valid. So window[strstart] until window[strstart+lookahead-1] are valid characters. | |
byte[] | window |
This array contains the part of the uncompressed stream that is of relevance. The current character is indexed by strstart. | |
DeflateStrategy | strategy |
int | max_chain |
int | max_lazy |
int | niceLength |
int | goodLength |
int | comprFunc |
The current compression function. | |
byte[] | inputBuf |
The input data for compression. | |
int | totalIn |
The total bytes of input read. | |
int | inputOff |
The offset into inputBuf, where input data starts. | |
int | inputEnd |
The end offset of the input data. | |
DeflaterPending | pending |
DeflaterHuffman | huffman |
Adler32 | adler |
The adler checksum. | |
Static Private Attributes | |
static int | TOO_FAR = 4096 |
Definition at line 90 of file DeflaterEngine.cs.
|
Construct instance with pending buffer.
Definition at line 179 of file DeflaterEngine.cs. |
|
Deflate drives actual compression of data.
Definition at line 728 of file DeflaterEngine.cs. |
|
Definition at line 555 of file DeflaterEngine.cs. |
|
Definition at line 632 of file DeflaterEngine.cs. |
|
Definition at line 522 of file DeflaterEngine.cs. |
|
Fill the window.
Definition at line 365 of file DeflaterEngine.cs. |
|
Find the best (longest) string in the window matching the string starting at strstart. Preconditions: strstart + MAX_MATCH <= window.length.</code> <param name="curMatch"></param> <returns>True if a match greater than the minimum length is found</returns> Definition at line 407 of file DeflaterEngine.cs. |
|
Inserts the current string in the head hash and returns the previous value for this hash.
Definition at line 318 of file DeflaterEngine.cs. |
|
Return true if input is needed via SetInput SetInput.
Definition at line 786 of file DeflaterEngine.cs. |
|
Reset internal state.
Definition at line 197 of file DeflaterEngine.cs. |
|
Reset Adler checksum.
Definition at line 219 of file DeflaterEngine.cs. |
|
Set compression dictionary.
Definition at line 494 of file DeflaterEngine.cs. |
|
Sets input data to be deflated. Should only be called when NeedsInput()</code> returns true.
Definition at line 763 of file DeflaterEngine.cs. |
|
Set the deflate level (0-9).
Definition at line 257 of file DeflaterEngine.cs. |
|
Definition at line 340 of file DeflaterEngine.cs. |
|
Definition at line 303 of file DeflaterEngine.cs. |
|
The adler checksum.
Definition at line 171 of file DeflaterEngine.cs. |
|
Definition at line 116 of file DeflaterEngine.cs. |
|
The current compression function.
Definition at line 143 of file DeflaterEngine.cs. |
|
Definition at line 138 of file DeflaterEngine.cs. |
|
Hashtable, hashing three characters to an index for window, so that window[index]..window[index+2] have this hash code. Note that the array should really be unsigned short, so you need to and the values with 0xffff.
Definition at line 102 of file DeflaterEngine.cs. |
|
Definition at line 166 of file DeflaterEngine.cs. |
|
The input data for compression.
Definition at line 148 of file DeflaterEngine.cs. |
|
The end offset of the input data.
Definition at line 163 of file DeflaterEngine.cs. |
|
The offset into inputBuf, where input data starts.
Definition at line 158 of file DeflaterEngine.cs. |
|
Definition at line 94 of file DeflaterEngine.cs. |
|
lookahead is the number of characters starting at strstart in window that are valid. So window[strstart] until window[strstart+lookahead-1] are valid characters.
Definition at line 129 of file DeflaterEngine.cs. |
|
Definition at line 114 of file DeflaterEngine.cs. |
|
Definition at line 113 of file DeflaterEngine.cs. |
|
Definition at line 138 of file DeflaterEngine.cs. |
|
Definition at line 138 of file DeflaterEngine.cs. |
|
Definition at line 138 of file DeflaterEngine.cs. |
|
Definition at line 165 of file DeflaterEngine.cs. |
|
prev[index & WMASK]</code> points to the previous index that has the same hash code as the string starting at index. This way entries with the same hash code are in a linked list. Note that the array should really be unsigned short, so you need to and the values with 0xffff.
Definition at line 111 of file DeflaterEngine.cs. |
|
Definition at line 115 of file DeflaterEngine.cs. |
|
Definition at line 137 of file DeflaterEngine.cs. |
|
Points to the current character in the window.
Definition at line 121 of file DeflaterEngine.cs. |
|
Definition at line 92 of file DeflaterEngine.cs. |
|
The total bytes of input read.
Definition at line 153 of file DeflaterEngine.cs. |
|
This array contains the part of the uncompressed stream that is of relevance. The current character is indexed by strstart.
Definition at line 135 of file DeflaterEngine.cs. |
|
Get current value of Adler checksum.
Definition at line 227 of file DeflaterEngine.cs. |
|
Get/set the DeflateStrategydeflate strategy.
Definition at line 245 of file DeflaterEngine.cs. |
|
Total data processed.
Definition at line 236 of file DeflaterEngine.cs. |