![]() |
Home | Libraries | People | FAQ | More |
Reset the stream and compression settings.
void reset( int level, int windowBits, int memLevel, Strategy strategy);
This function initializes the stream to the specified compression settings.
Although the stream is ready to be used immediately after a reset, any required internal buffers are not dynamically allocated until needed.
|
Name |
Description |
|---|---|
|
|
Compression level from 0 to 9. |
|
|
The base two logarithm of the window size, or the history buffer. It should be in the range 9..15. A value of 8 is rejected, as zlib does for raw deflate streams, because deflate does not support a 256-byte window. |
|
|
How much memory should be allocated for the internal compression state, with level from from 1 to 9. |
|
|
|
|
Type |
Thrown On |
|---|---|
|
|
if a parameter is out of range. |
Any unprocessed input or pending output from previous calls are discarded.