Name

inflatePrime    - This function inserts bits in the inflate input stream.

Synopsis

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

Detailed Description

This function inserts bits in the inflate input stream. The intent is that this function is used to start inflating at a bit position in the middle of a byte. The provided bits will be used before any bytes are used from next_in. This function should only be used with raw inflate, and should be used before the first inflate() call after inflateInit2() or inflateReset(). bits must be less than or equal to 16, and that many of the least significant bits of value will be inserted in the input.

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 input.
int value  
 

Return value

int ZEXPORT inflatePrime 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