FANDOM


int inflateReset2(z_streamp strm,
                                 int windowBits);

This function is the same as inflateReset, but it also permits changing the wrap and window size requests. The windowBits parameter is interpreted the same as it is for inflateInit2.

inflateReset2 returns

Z_OK if success
Z_STREAM_ERROR if the source stream state was inconsistent (such as zalloc or state being Z_NULL), or if the windowBits parameter is invalid

.