#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"
Go to the source code of this file.
|
static void | fixedtables () |
|
static int | updatewindow () |
|
static unsigned | syncsearch () |
|
int | inflateResetKeep (z_streamp strm) |
|
int | inflateReset (z_streamp strm) |
|
int | inflateReset2 (z_streamp strm, int windowBits) |
|
int | inflateInit2_ (z_streamp strm, int windowBits, char *version, int stream_size) |
|
int | inflateInit_ (z_streamp strm, char *version, int stream_size) |
|
int | inflatePrime (z_streamp strm, int bits, int value) |
|
static void | fixedtables (struct inflate_state *state) |
|
static int | updatewindow (z_streamp strm, Bytef *end, unsigned copy) |
|
int | inflate (z_streamp strm, int flush) |
|
int | inflateEnd (z_streamp strm) |
|
int | inflateGetDictionary (z_streamp strm, Bytef *dictionary, uInt *dictLength) |
|
int | inflateSetDictionary (z_streamp strm, Bytef *dictionary, uInt dictLength) |
|
int | inflateGetHeader (z_streamp strm, gz_headerp head) |
|
static unsigned | syncsearch (unsigned *have, unsigned char *buf, unsigned len) |
|
int | inflateSync (z_streamp strm) |
|
int | inflateSyncPoint (z_streamp strm) |
|
int | inflateCopy (z_streamp dest, z_streamp source) |
|
int | inflateUndermine (z_streamp strm, int subvert) |
|
long | inflateMark (z_streamp strm) |
|
#define BITS |
( |
|
n | ) |
((unsigned)hold & ((1U << (n)) - 1)) |
Value:do { \
} while (0)
static int bits(struct state *s, int need)
Definition at line 517 of file inflate.c.
#define CRC2 |
( |
|
check, |
|
|
|
word |
|
) |
| |
Value:do { \
hbuf[0] = (unsigned char)(word); \
hbuf[1] = (unsigned char)((word) >> 8); \
check =
crc32(check, hbuf, 2); \
} while (0)
unsigned long crc32(unsigned long crc, unsigned char *buf, uInt len)
Definition at line 441 of file inflate.c.
#define CRC4 |
( |
|
check, |
|
|
|
word |
|
) |
| |
Value:do { \
hbuf[0] = (unsigned char)(word); \
hbuf[1] = (unsigned char)((word) >> 8); \
hbuf[2] = (unsigned char)((word) >> 16); \
hbuf[3] = (unsigned char)((word) >> 24); \
check =
crc32(check, hbuf, 4); \
} while (0)
unsigned long crc32(unsigned long crc, unsigned char *buf, uInt len)
Definition at line 448 of file inflate.c.
Value:do { \
hold >>= (n); \
bits -= (unsigned)(n); \
} while (0)
Definition at line 510 of file inflate.c.
Value:do { \
hold = 0; \
bits = 0; \
} while (0)
Definition at line 481 of file inflate.c.
Value:do { \
put = strm->next_out; \
left = strm->avail_out; \
next = strm->next_in; \
have = strm->avail_in; \
} while (0)
Definition at line 459 of file inflate.c.
Value:do { \
while (
bits < (
unsigned)(n)) \
PULLBYTE(); \
} while (0)
static int bits(struct state *s, int need)
Definition at line 499 of file inflate.c.
Value:do { \
if (have == 0) goto inf_leave; \
have--; \
hold += (
unsigned long)(*next++) <<
bits; \
bits += 8; \
} while (0)
static int bits(struct state *s, int need)
Definition at line 489 of file inflate.c.
Value:do { \
strm->next_out = put; \
strm->avail_out = left; \
strm->next_in = next; \
strm->avail_in = have; \
state->hold = hold; \
} while (0)
static int bits(struct state *s, int need)
Definition at line 470 of file inflate.c.
#define UPDATE |
( |
|
check, |
|
|
|
buf, |
|
|
|
len |
|
) |
| (state->flags ? crc32(check, buf, len) : adler32(check, buf, len)) |
static void fixedtables |
( |
| ) |
|
|
static |
int inflateInit2_ |
( |
z_streamp |
strm, |
|
|
int |
windowBits, |
|
|
char * |
version, |
|
|
int |
stream_size |
|
) |
| |
int inflateInit_ |
( |
z_streamp |
strm, |
|
|
char * |
version, |
|
|
int |
stream_size |
|
) |
| |
int inflatePrime |
( |
z_streamp |
strm, |
|
|
int |
bits, |
|
|
int |
value |
|
) |
| |
int inflateReset2 |
( |
z_streamp |
strm, |
|
|
int |
windowBits |
|
) |
| |
int inflateUndermine |
( |
z_streamp |
strm, |
|
|
int |
subvert |
|
) |
| |
static unsigned syncsearch |
( |
| ) |
|
|
static |
static unsigned syncsearch |
( |
unsigned * |
have, |
|
|
unsigned char * |
buf, |
|
|
unsigned |
len |
|
) |
| |
|
static |
static int updatewindow |
( |
| ) |
|
|
static |
static int updatewindow |
( |
z_streamp |
strm, |
|
|
Bytef * |
end, |
|
|
unsigned |
copy |
|
) |
| |
|
static |