...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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. |
|
How much memory should be allocated for the internal compression state, with level from from 1 to 9. |
|
Strategy to tune the compression algorithm. |
Any unprocessed input or pending output from previous calls are discarded.