Lines Matching refs:inflate

171 /* Allowed flush values; see deflate() and inflate() below for details */
203 /* Possible values of the data_type field (though see inflate()) */
376 inflate. If zalloc and zfree are set to Z_NULL, inflateInit updates them to
385 will be done by inflate(). (So next_in and avail_in may be modified, but
388 until inflate() is called.
392 ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
394 inflate decompresses as much data as possible, and stops when the input
399 The detailed semantics are as follows. inflate performs one or both of the
405 resume at this point for the next call of inflate().
408 accordingly. inflate() provides as much output as possible, until there is
412 Before the call of inflate(), the application should ensure that at least
417 inflate(). If inflate returns Z_OK and with zero avail_out, it must be
421 The flush parameter of inflate() can be Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FINISH,
422 Z_BLOCK, or Z_TREES. Z_SYNC_FLUSH requests that inflate() flush as much
423 output as possible to the output buffer. Z_BLOCK requests that inflate()
425 the zlib or gzip format, this will cause inflate() to return immediately
426 after the header and before the first block. When doing a raw inflate,
427 inflate() will go ahead and process the first block, and will return when it
431 Also to assist in this, on return inflate() will set strm->data_type to the
433 inflate() is currently decoding the last block in the deflate stream, plus
434 128 if inflate() returned immediately after decoding an end-of-block code or
440 eight. data_type is set as noted here every time inflate() returns for all
448 256 is added to the value of strm->data_type when inflate() returns
451 inflate() should normally be called until it returns Z_STREAM_END or an
453 single call of inflate), the parameter flush should be set to Z_FINISH. In
459 inflation in one step. However it may be used to inform inflate that a
460 faster approach can be used for the single inflate() call. Z_FINISH also
461 informs inflate to not maintain a sliding window if the stream completes,
462 which reduces inflate's memory footprint.
464 In this implementation, inflate() always flushes as much output as
467 on the return value of inflate() as noted below, when inflate() returns early
468 when Z_BLOCK or Z_TREES is used, and when inflate() avoids the allocation of
472 below), inflate sets strm->adler to the Adler-32 checksum of the dictionary
476 below. At the end of the stream, inflate() checks that its computed adler32
480 inflate() can decompress and check either zlib-wrapped or gzip-wrapped
484 instead use raw inflate, see inflateInit2() below, or inflateBack() and
489 inflate() returns Z_OK if some progress has been made (more input processed
498 inflate() can be called again with more input and more output space to
780 size is given as input, inflate() will return with the error code
783 windowBits can also be zero to request that inflate use the window size in
786 windowBits can also be -8..-15 for raw inflate. In this case, -windowBits
787 determines the window size. inflate() will then process raw deflate data,
810 will be done by inflate(). (So next_in and avail_in may be modified, but
813 deferred until inflate() is called.
821 sequence. This function must be called immediately after a call of inflate,
823 can be determined from the adler32 value returned by that call of inflate.
825 deflateSetDictionary). For raw inflate, this function can be called at any
836 inflate().
864 first pass through the stream can periodically record the inflate state,
865 allowing restarting inflate at those points when randomly accessing the
900 This function inserts bits in the inflate input stream. The intent is
903 from next_in. This function should only be used with raw inflate, and
904 should be used before the first inflate() call after inflateInit2() or
910 to clear out bits leftover after feeding inflate a block description prior
911 to feeding inflate codes.
922 zero, then inflate() is currently decoding information outside of a block.
923 If the upper value is -1 and the lower value is non-zero, then inflate is in
931 A code is being processed if inflate is waiting for more input to complete
939 as noted in the description for the Z_BLOCK flush parameter for inflate.
950 inflateInit2() or inflateReset(), and before the first call of inflate().
951 As inflate() processes the gzip stream, head->done is zero until the header
955 used to force inflate() to return immediately after header processing is
1014 inflateBack() does a raw inflate with a single call using a call-back
1015 interface for input and output. This is more efficient than inflate() for
1023 inflateBack() may then be used multiple times to inflate a complete, raw
1032 behavior of inflate(), which expects either a zlib or gzip header and
1110 17: NO_GZIP -- deflate can't write gzip streams, and inflate can't detect
1115 20: PKZIP_BUG_WORKAROUND -- slightly more permissive inflate