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

Lines Matching refs:inflate

6 /* inflate.c -- zlib decompression
17 * - First version -- complete rewrite of inflate to simplify code, avoid
20 * improve code readability and style over the previous zlib inflate code
31 * - Correct filename to inffixed.h for fixed tables in inflate.c
32 * - Make hbuf[] unsigned char to match parameter type in inflate.c
34 * to avoid negation problem on Alphas (64 bit) in inflate.c
44 * - Make MATCH copy in inflate() much faster for when inflate_fast() not used
46 * buffer and bit count in inflate()--for speed when inflate_fast() not used
50 * - Move a comment on output buffer sizes from inffast.c to inflate.c
60 * source file infback.c to provide a call-back interface to inflate for
85 * - Check next_in and next_out for Z_NULL on entry to inflate()
92 #include "inflate.h"
131 Tracev((stderr, "inflate: reset\n"));
172 Tracev((stderr, "inflate: allocated\n"));
320 inflate call, but the end of the deflate stream has not been reached yet.
324 Providing output buffers larger than 32K to inflate() should provide a speed
326 upon return from inflate(), and since all distances after the first 32K of
380 /* Macros for inflate(): */
409 /* Load registers with state in inflate() for speed */
420 /* Restore state from registers in inflate() */
438 /* Get a byte of input into the bit accumulator, or return from inflate()
449 not enough available input to do that, then return from inflate(). */
480 inflate() uses a state machine to process as much input data and generate as
495 so when inflate() is called again, the same case is attempted again, and
506 where NEEDBITS(n) either returns from inflate() if there isn't enough
543 during that inflate() call in order to return the proper return code.
548 output to the window for the next call of inflate().
550 In this implementation, the flush parameter of inflate() only affects the
551 return code (per zlib.h). inflate() always writes as much as possible to
553 documented in zlib.h of Z_SYNC_FLUSH. Furthermore, inflate() always defers
557 when flush is set to Z_FINISH, inflate() cannot return Z_OK. Instead it
561 int ZEXPORT inflate(strm, flush)
635 Tracev((stderr, "inflate: zlib header ok\n"));
803 Tracev((stderr, "inflate: stored block%s\n",
809 Tracev((stderr, "inflate: fixed codes block%s\n",
814 Tracev((stderr, "inflate: dynamic codes block%s\n",
833 Tracev((stderr, "inflate: stored length %u\n",
852 Tracev((stderr, "inflate: stored end\n"));
870 Tracev((stderr, "inflate: table sizes ok\n"));
892 Tracev((stderr, "inflate: code lengths ok\n"));
968 Tracev((stderr, "inflate: codes ok\n"));
997 "inflate: literal '%c'\n" :
998 "inflate: literal 0x%02x\n", this.val));
1003 Tracevv((stderr, "inflate: end of block\n"));
1021 Tracevv((stderr, "inflate: length %u\n", state->length));
1068 Tracevv((stderr, "inflate: distance %u\n", state->offset));
1122 Tracev((stderr, "inflate: check matches trailer\n"));
1136 Tracev((stderr, "inflate: length matches trailer\n"));
1155 Return from inflate(), updating the total counts and the check value.
1156 If there was no progress during the inflate() call, return a buffer
1158 Note: a memory error from inflate() is non-recoverable.
1192 Tracev((stderr, "inflate: end\n"));
1234 Tracev((stderr, "inflate: dictionary set\n"));
1323 /* return no joy or set up to restart inflate() on a new block */
1333 Returns true if inflate is currently at the end of a block generated by
1338 inflate is waiting for these length bytes.