#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"
Go to the source code of this file.
◆ BITS
| #define BITS |
( |
|
n | ) |
((unsigned)hold & ((1U << (n)) - 1)) |
◆ BYTEBITS
Value: do { \
hold >>= bits & 7; \
bits -= bits & 7; \
} while (0)
Definition at line 201 of file infback.c.
◆ DROPBITS
Value: do { \
hold >>= (n); \
bits -= (unsigned)(n); \
} while (0)
Definition at line 194 of file infback.c.
◆ INITBITS
Value: do { \
hold = 0; \
bits = 0; \
} while (0)
Definition at line 150 of file infback.c.
◆ LOAD
Value: do { \
put = strm->next_out; \
left = strm->avail_out; \
next = strm->next_in; \
have = strm->avail_in; \
hold = state->hold; \
bits = state->bits; \
} while (0)
Definition at line 128 of file infback.c.
◆ NEEDBITS
Value: do { \
while (bits < (unsigned)(n)) \
PULLBYTE(); \
} while (0)
Definition at line 183 of file infback.c.
◆ PULL
Value: do { \
if (have == 0) { \
have = in(in_desc, &next); \
if (have == 0) { \
goto inf_leave; \
} \
} \
} while (0)
Definition at line 158 of file infback.c.
◆ PULLBYTE
Value: do { \
PULL(); \
have--; \
hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)
Definition at line 172 of file infback.c.
◆ RESTORE
Value: do { \
strm->next_out = put; \
strm->avail_out = left; \
strm->next_in = next; \
strm->avail_in = have; \
state->hold = hold; \
state->bits = bits; \
} while (0)
Definition at line 139 of file infback.c.
◆ ROOM
Value: do { \
if (left == 0) { \
put = state->window; \
left = state->wsize; \
state->whave = left; \
if (
out(out_desc, put, left)) { \
goto inf_leave; \
} \
} \
} while (0)
Definition at line 210 of file infback.c.
◆ fixedtables()
Definition at line 82 of file infback.c.
References inflate_state::bits, inflate_state::distbits, inflate_state::distcode, distfix, DISTS, inflate_table(), inflate_state::lenbits, inflate_state::lencode, lenfix, inflate_state::lens, LENS, inflate_state::next, and inflate_state::work.
Referenced by inflateBack().
◆ inflateBack()
Definition at line 250 of file infback.c.
References BAD, BITS, inflate_state::bits, code::bits, BYTEBITS, inflate_state::codes, CODES, inflate_state::distbits, inflate_state::distcode, DISTS, DONE, DROPBITS, inflate_state::extra, FAR, fixedtables(), inflate_state::have, inflate_state::hold, inflate_fast(), inflate_table(), INITBITS, inflate_state::last, LEN, inflate_state::lenbits, inflate_state::lencode, inflate_state::length, inflate_state::lens, LENS, LOAD, inflate_state::mode, inflate_state::ncode, inflate_state::ndist, NEEDBITS, inflate_state::next, inflate_state::nlen, inflate_state::offset, code::op, out, PULL, PULLBYTE, RESTORE, ROOM, STORED, inflate_state::strm, TABLE, Tracev, Tracevv, TYPE, code::val, inflate_state::whave, inflate_state::window, inflate_state::work, inflate_state::wsize, Z_BUF_ERROR, z_const, Z_DATA_ERROR, Z_NULL, Z_STREAM_END, Z_STREAM_ERROR, and zmemcpy().
◆ inflateBackEnd()
◆ inflateBackInit_()
| int ZEXPORT inflateBackInit_ |
( |
z_streamp |
strm, |
|
|
int |
windowBits, |
|
|
unsigned char FAR * |
window, |
|
|
const char * |
version, |
|
|
int |
stream_size |
|
) |
| |
Definition at line 28 of file infback.c.
References inflate_state::dmax, FAR, inflate_state::strm, Tracev, inflate_state::wbits, inflate_state::whave, inflate_state::window, inflate_state::wnext, inflate_state::wsize, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, Z_VERSION_ERROR, ZALLOC, zcalloc(), zcfree(), and ZLIB_VERSION.
◆ OF()