...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
void clear();
This function resets the stream and frees all dynamically allocated internal buffers. The compression settings are left unchanged.
Any unprocessed input or pending output from previous calls are discarded.