inflateSyncPoint — Tests for synchronization point.
Libz.lib
#include <zlib.h>
int inflateSyncPoint(z_streamp stream);
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.
The inflateSyncPoint()
function shall
return a non-zero value if the compressed data stream referenced by
stream is at a synchronization point.
To test for synchronization point:
#include <stdio.h> |
Output
A non-zero value of h , other than Z_STREAM_ERROR is indication of synchronization point.
|
On error, inflateSyncPoint() shall return a value as described below:
Z_STREAM_ERROR |
The state (as represented in stream)
is inconsistent, or stream was |
For additional information or queries on this page send feedback
© 2005-2007 Nokia |