Name

inflateBackInit_  - Initialize the internal stream state for decompression using inflateBack() calls.
 

Synopsis

int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char *window, const char *version, int stream_size);

Detailed Description

Initialize the internal stream state for decompression using inflateBack() calls. The fields zalloc, zfree and opaque in strm must be initialized before the call. If zalloc and zfree are Z_NULL, then the default library- derived memory allocation routines are used. windowBits is the base two logarithm of the window size, in the range 8..15. window is a caller supplied buffer of that size. Except for special applications where it is assured that deflate was used with small window sizes, windowBits must be 15 and a 32K byte window must be supplied to be able to decompress general deflate streams.

Note: In this version of the library a windowBits value of 8 is unsupported due to a problem with the window size being set to 256 bytes. Although a value of 8 will be accepted by deflateInit2(), as it is being changed internally from 8 to 9, it will not be possible to use the same value when it comes to decompression. This is because inflateInit2() does not make the same change internally and as a result a Z_DATA_ERROR is returned when calling inflate(). It is therefore advised that for this version of the library windowBits of 9 is used in place of 8.


Parameters

z_streamp strm stream of data
int windowBits refer to above note for window bits value
unsigned char *window window is a caller supplied buffer of that size
const char *version version of library
int stream_size size of stream
 

Return value

int ZEXPORT inflateBackInit_ returns Z_OK on success, Z_STREAM_ERROR if any of the paramaters are invalid, Z_MEM_ERROR if the internal state could not be allocated, or Z_VERSION_ERROR if the version of the library does not match the version of the header file.
 

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