| Home | Libraries | People | FAQ | More

###### zlib::deflate_stream::reset (1 of 2 overloads)

Reset the stream and compression settings.

<h7> Synopsis </h7>

    void
    reset(
        int level,
        int windowBits,
        int memLevel,
        Strategy strategy);

<h7> Description </h7>

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.

<h7> Remarks </h7>

Any unprocessed input or pending output from previous calls are discarded.