inflateSyncPoint

Name

inflateSyncPoint -- test for synchronization point

Synopsis

#include <zlib.h>

int inflateSyncPoint(z_streamp stream);

Description

The inflateSyncPoint() function shall return a non-zero value if the compressed data stream referenced by stream is at a synchronization point.

Return Value

If the compressed data in stream is at a synchronization point (see deflate() with a flush level of Z_SYNC_FLUSH or Z_FULL_FLUSH), inflateSyncPoint() shall return a non-zero value, other than Z_STREAM_ERROR. Otherwise, if the stream is valid, inflateSyncPoint() shall return 0. If stream is invalid, or in an invalid state, inflateSyncPoint() shall return Z_STREAM_ERROR to indicate the error.

Errors

On error, inflateSyncPoint() shall return a value as described below:

Z_STREAM_ERROR 

The state (as represented in stream) is inconsistent, or stream was NULL.