deflateCopy — Copies the compression state information in source to the uninitialized z_stream structure referenced by dest.
Libz.lib
#include <zlib.h>
int deflateCopy(z_streamp dest, z_streamp source);
On success, deflateCopy() shall return Z_OK. Otherwise it shall return a value less than zero to indicate the error.
The deflateCopy() function shall copy the compression state information in source to the uninitialized z_stream structure referenced by dest.
On successful return, dest
will
be an exact copy
of the stream referenced by source.
The input and
output buffer pointers in next_in
and
next_out
will reference the same data.
To copy the compression state information in source to the
uninitialized z_stream structure referenced by dest.
#include <stdio.h> void Deflatecopy( ) { |
Output
Now stream1 and stream are in same state. |
Z_STREAM_ERROR |
The state in source is
inconsistent, or
either source or dest was |
|
Z_MEM_ERROR |
Insufficient memory available. |
For additional information or queries on this page send feedback
© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
|