Lines Matching defs:inflate
0 /* inflate.c -- zlib decompression
10 * - First version -- complete rewrite of inflate to simplify code, avoid
13 * improve code readability and style over the previous zlib inflate code
24 * - Correct filename to inffixed.h for fixed tables in inflate.c
25 * - Make hbuf[] unsigned char to match parameter type in inflate.c
27 * to avoid negation problem on Alphas (64 bit) in inflate.c
37 * - Make MATCH copy in inflate() much faster for when inflate_fast() not used
39 * buffer and bit count in inflate()--for speed when inflate_fast() not used
43 * - Move a comment on output buffer sizes from inffast.c to inflate.c
53 * source file infback.c to provide a call-back interface to inflate for
78 * - Check next_in and next_out for Z_NULL on entry to inflate()
85 #include "inflate.h"
127 Tracev((stderr, "inflate: reset\n"));
206 Tracev((stderr, "inflate: allocated\n"));
360 inflate call, but the end of the deflate stream has not been reached yet.
364 Providing output buffers larger than 32K to inflate() should provide a speed
366 upon return from inflate(), and since all distances after the first 32K of
426 /* Macros for inflate(): */
455 /* Load registers with state in inflate() for speed */
466 /* Restore state from registers in inflate() */
484 /* Get a byte of input into the bit accumulator, or return from inflate()
495 not enough available input to do that, then return from inflate(). */
521 inflate() uses a state machine to process as much input data and generate as
536 so when inflate() is called again, the same case is attempted again, and
547 where NEEDBITS(n) either returns from inflate() if there isn't enough
584 during that inflate() call in order to return the proper return code.
589 output to the window for the next call of inflate().
591 In this implementation, the flush parameter of inflate() only affects the
592 return code (per zlib.h). inflate() always writes as much as possible to
594 documented in zlib.h of Z_SYNC_FLUSH. Furthermore, inflate() always defers
598 when flush is set to Z_FINISH, inflate() cannot return Z_OK. Instead it
602 int ZEXPORT inflate(z_streamp strm, int flush) {
677 Tracev((stderr, "inflate: zlib header ok\n"));
850 Tracev((stderr, "inflate: stored block%s\n",
856 Tracev((stderr, "inflate: fixed codes block%s\n",
865 Tracev((stderr, "inflate: dynamic codes block%s\n",
884 Tracev((stderr, "inflate: stored length %u\n",
907 Tracev((stderr, "inflate: stored end\n"));
925 Tracev((stderr, "inflate: table sizes ok\n"));
947 Tracev((stderr, "inflate: code lengths ok\n"));
1031 Tracev((stderr, "inflate: codes ok\n"));
1070 "inflate: literal '%c'\n" :
1071 "inflate: literal 0x%02x\n", here.val));
1076 Tracevv((stderr, "inflate: end of block\n"));
1096 Tracevv((stderr, "inflate: length %u\n", state->length));
1142 Tracevv((stderr, "inflate: distance %u\n", state->offset));
1157 Trace((stderr, "inflate.c too far\n"));
1215 Tracev((stderr, "inflate: check matches trailer\n"));
1229 Tracev((stderr, "inflate: length matches trailer\n"));
1249 Return from inflate(), updating the total counts and the check value.
1250 If there was no progress during the inflate() call, return a buffer
1252 Note: a memory error from inflate() is non-recoverable.
1309 Tracev((stderr, "inflate: end\n"));
1361 Tracev((stderr, "inflate: dictionary set\n"));
1443 /* return no joy or set up to restart inflate() on a new block */
1459 Returns true if inflate is currently at the end of a block generated by
1464 inflate is waiting for these length bytes.