Name

deflatePrime   - Inserts bits in the deflate output stream.
 

Synopsis

int ZEXPORT deflatePrime(z_streamp strm, int bits, int value);

Detailed Description

deflatePrime() inserts bits in the deflate output stream. The intent is that this function is used to start off the deflate output with the bits leftover from a previous deflate stream when appending to it. As such, this function can only be used for raw deflate, and must be used before the first deflate() call after a deflateInit2() or deflateReset(). bits must be less than or equal to 16, and that many of the least significant bits of value will be inserted in the output.

Parameters

z_streamp strm stream of data
int bits bits must be less than or equal to 16, and that many of the least significant bits of value will be inserted in the output.
int value represents value of the bits to be inserted
 

Return value

int ZEXPORT deflatePrime returns Z_OK if success, or Z_STREAM_ERROR if the source stream state was inconsistent
 

Feedback

For additional information or queries on this page send feedback

© 2008-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.

Top