#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 { \
} while (0)
int bits(struct state *s, int need)
Definition at line 202 of file infback.c.
◆ DROPBITS
Value: do { \
hold >>= (n); \
} while (0)
Definition at line 195 of file infback.c.
◆ INITBITS
Value: do { \
hold = 0; \
} while (0)
Definition at line 151 of file infback.c.
◆ LOAD
Value: do { \
put = strm->next_out; \
left = strm->avail_out; \
next = strm->next_in; \
have = strm->avail_in; \
} while (0)
Definition at line 129 of file infback.c.
◆ NEEDBITS
Value: do { \
while (
bits < (
unsigned)(n)) \
PULLBYTE(); \
} while (0)
Definition at line 184 of file infback.c.
◆ PULL
Value: do { \
if (have == 0) { \
have =
in(in_desc, &next); \
if (have == 0) { \
goto inf_leave; \
} \
} \
} while (0)
unsigned in(void *in_desc, z_const unsigned char **buf)
Definition at line 159 of file infback.c.
◆ PULLBYTE
Value: do { \
PULL(); \
have--; \
hold += (
unsigned long)(*next++) <<
bits; \
} while (0)
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque
Definition at line 173 of file infback.c.
◆ RESTORE
Value: do { \
strm->next_out = put; \
strm->avail_out = left; \
strm->next_in = next; \
strm->avail_in = have; \
} while (0)
Definition at line 140 of file infback.c.
◆ ROOM
Value: do { \
if (left == 0) { \
if (
out(out_desc, put, left)) { \
goto inf_leave; \
} \
} \
} while (0)
Definition at line 211 of file infback.c.
◆ fixedtables()
◆ inflateBack()
Definition at line 251 of file infback.c.
References BAD, bits(), code::bits, BITS, BYTEBITS, CODES, DISTS, DONE, DROPBITS, FAR, fixedtables(), inflate_state::have, inflate_state::hold, if(), inflate_fast(), inflate_table(), INITBITS, last, len, LEN, LENS, LOAD, NEEDBITS, state::next, inflate_state::next, code::op, out, PULL, PULLBYTE, RESTORE, ROOM, STORED, inflate_state::strm, TABLE, Tracev, Tracevv, TYPE, code::val, inflate_state::wsize, Z_BUF_ERROR, z_const, Z_DATA_ERROR, Z_NULL, Z_STREAM_END, Z_STREAM_ERROR, and zmemcpy.
Referenced by gunpipe().
◆ inflateBackEnd()
◆ inflateBackInit_()
Definition at line 28 of file infback.c.
References FAR, inflate_state::strm, Tracev, inflate_state::window, internal_state::window, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, Z_VERSION_ERROR, ZALLOC, zcalloc(), zcfree(), and ZLIB_VERSION.
◆ OF()