inflateReset

Name

inflateReset -- reset decompression stream state

Synopsis

#include <zlib.h>

int inflateReset(z_streamp stream);

Description

The inflateReset() function shall reset all state associated with stream. All pending output shall be discarded, and the counts of processed bytes (total_in and total_out) shall be reset to zero.

Return Value

On success, inflateReset() shall return Z_OK. Otherwise it shall return Z_STREAM_ERROR to indicate the error.

Errors

On error, inflateReset() shall return Z_STREAM_ERROR. The following conditions shall be treated as an error: