• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/zmod/

Lines Matching refs:inflate

170 /* Allowed flush values; see deflate() and inflate() below for details */
202 /* Possible values of the data_type field (though see inflate()) */
353 inflate. If zalloc and zfree are set to Z_NULL, inflateInit updates them to
360 the zlib header if present: this will be done by inflate(). (So next_in and
365 ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
367 inflate decompresses as much data as possible, and stops when the input
372 The detailed semantics are as follows. inflate performs one or both of the
378 will resume at this point for the next call of inflate().
381 accordingly. inflate() provides as much output as possible, until there
385 Before the call of inflate(), the application should ensure that at least
390 call of inflate(). If inflate returns Z_OK and with zero avail_out, it
394 The flush parameter of inflate() can be Z_NO_FLUSH, Z_SYNC_FLUSH,
395 Z_FINISH, or Z_BLOCK. Z_SYNC_FLUSH requests that inflate() flush as much
396 output as possible to the output buffer. Z_BLOCK requests that inflate() stop
398 zlib or gzip format, this will cause inflate() to return immediately after
399 the header and before the first block. When doing a raw inflate, inflate()
404 Also to assist in this, on return inflate() will set strm->data_type to the
406 if inflate() is currently decoding the last block in the deflate stream,
407 plus 128 if inflate() returned immediately after decoding an end-of-block
415 inflate() should normally be called until it returns Z_STREAM_END or an
417 (a single call of inflate), the parameter flush should be set to
423 is never required, but can be used to inform inflate that a faster approach
424 may be used for the single inflate() call.
426 In this implementation, inflate() always flushes as much output as
429 is on the return value of inflate(), as noted below, or when it returns early
433 below), inflate sets strm->adler to the adler32 checksum of the dictionary
437 below. At the end of the stream, inflate() checks that its computed adler32
441 inflate() will decompress and check either zlib-wrapped or gzip-wrapped
444 information should instead use raw inflate, see inflateInit2() below, or
448 inflate() returns Z_OK if some progress has been made (more input processed
457 inflate() can be called again with more input and more output space to
709 size is given as input, inflate() will return with the error code
712 windowBits can also be -8..-15 for raw inflate. In this case, -windowBits
713 determines the window size. inflate() will then process raw deflate data,
734 be done by inflate(). (So next_in and avail_in may be modified, but next_out
743 sequence. This function must be called immediately after a call of inflate,
745 can be determined from the adler32 value returned by that call of inflate.
747 deflateSetDictionary). For raw inflate, this function can be called
749 inflate() to set the dictionary. The application must insure that the
757 inflate().
781 first pass through the stream can periodically record the inflate state,
782 allowing restarting inflate at those points when randomly accessing the
805 This function inserts bits in the inflate input stream. The intent is
808 from next_in. This function should only be used with raw inflate, and
809 should be used before the first inflate() call after inflateInit2() or
822 inflateInit2() or inflateReset(), and before the first call of inflate().
823 As inflate() processes the gzip stream, head->done is zero until the header
827 force inflate() to return immediately after header processing is complete
886 inflateBack() does a raw inflate with a single call using a call-back
887 interface for input and output. This is more efficient than inflate() for
895 inflateBack() may then be used multiple times to inflate a complete, raw
904 normal behavior of inflate(), which expects either a zlib or gzip header and
982 17: NO_GZIP -- deflate can't write gzip streams, and inflate can't detect
987 20: PKZIP_BUG_WORKAROUND -- slightly more permissive inflate