Lines Matching refs:inflate
103 for deflate, or the decoding state for inflate */
175 /* Allowed flush values; see deflate() and inflate() below for details */
381 the caller. In the current version of inflate, the provided input is not
383 the first call of inflate (if the decompression does not complete on the
393 Actual decompression will be done by inflate(). So next_in, and avail_in,
396 that is deferred until inflate() is called.
400 ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush);
402 inflate decompresses as much data as possible, and stops when the input
407 The detailed semantics are as follows. inflate performs one or both of the
414 inflate().
417 accordingly. inflate() provides as much output as possible, until there is
421 Before the call of inflate(), the application should ensure that at least
424 caller of inflate() does not provide both available input and available
428 inflate(). If inflate returns Z_OK and with zero avail_out, it must be
432 The flush parameter of inflate() can be Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FINISH,
433 Z_BLOCK, or Z_TREES. Z_SYNC_FLUSH requests that inflate() flush as much
434 output as possible to the output buffer. Z_BLOCK requests that inflate()
436 the zlib or gzip format, this will cause inflate() to return immediately
437 after the header and before the first block. When doing a raw inflate,
438 inflate() will go ahead and process the first block, and will return when it
442 To assist in this, on return inflate() always sets strm->data_type to the
444 inflate() is currently decoding the last block in the deflate stream, plus
445 128 if inflate() returned immediately after decoding an end-of-block code or
451 eight. data_type is set as noted here every time inflate() returns for all
459 256 is added to the value of strm->data_type when inflate() returns
462 inflate() should normally be called until it returns Z_STREAM_END or an
464 single call of inflate), the parameter flush should be set to Z_FINISH. In
470 inform inflate that a faster approach can be used for the single inflate()
471 call. Z_FINISH also informs inflate to not maintain a sliding window if the
472 stream completes, which reduces inflate's memory footprint. If the stream
475 inflate() can be called again to continue the operation as if Z_NO_FLUSH had
478 In this implementation, inflate() always flushes as much output as
481 on the return value of inflate() as noted below, when inflate() returns early
482 when Z_BLOCK or Z_TREES is used, and when inflate() avoids the allocation of
486 below), inflate sets strm->adler to the Adler-32 checksum of the dictionary
490 below. At the end of the stream, inflate() checks that its computed Adler-32
494 inflate() can decompress and check either zlib-wrapped or gzip-wrapped
502 inflate() returns Z_OK if some progress has been made (more input processed
513 inflate() can be called again with more input and more output space to
561 checked against the initialization of inflate(). The remedy is to not use 8
846 size is given as input, inflate() will return with the error code
849 windowBits can also be zero to request that inflate use the window size in
852 windowBits can also be -8..-15 for raw inflate. In this case, -windowBits
853 determines the window size. inflate() will then process raw deflate data,
869 below), inflate() will *not* automatically decode concatenated gzip members.
870 inflate() will return Z_STREAM_END at the end of the gzip member. The state
881 will be done by inflate(). (So next_in and avail_in may be modified, but
884 deferred until inflate() is called.
892 sequence. This function must be called immediately after a call of inflate,
894 can be determined from the Adler-32 value returned by that call of inflate.
896 deflateSetDictionary). For raw inflate, this function can be called at any
907 inflate().
914 Returns the sliding dictionary being maintained by inflate. dictLength is
950 first pass through the stream can periodically record the inflate state,
951 allowing restarting inflate at those points when randomly accessing the
978 by inflate() if needed.
989 This function inserts bits in the inflate input stream. The intent is
992 from next_in. This function should only be used with raw inflate, and
993 should be used before the first inflate() call after inflateInit2() or
999 to clear out bits leftover after feeding inflate a block description prior
1000 to feeding inflate codes.
1011 zero, then inflate() is currently decoding information outside of a block.
1012 If the upper value is -1 and the lower value is non-zero, then inflate is in
1020 A code is being processed if inflate is waiting for more input to complete
1028 as noted in the description for the Z_BLOCK flush parameter for inflate.
1039 inflateInit2() or inflateReset(), and before the first call of inflate().
1040 As inflate() processes the gzip stream, head->done is zero until the header
1044 used to force inflate() to return immediately after header processing is
1104 inflateBack() does a raw inflate with a single call using a call-back
1106 inflate() for file i/o applications, in that it avoids copying between the
1108 buffer. inflate() can be faster on modern CPUs when used with large
1114 inflateBack() may then be used multiple times to inflate a complete, raw
1123 behavior of inflate(), which expects a zlib header and trailer around the
1201 17: NO_GZIP -- deflate can't write gzip streams, and inflate can't detect
1206 20: PKZIP_BUG_WORKAROUND -- slightly more permissive inflate