#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"
Go to the source code of this file.
Defines | |
#define | UPDATE(check, buf, len) (state->flags ? crc32(check, buf, len) : adler32(check, buf, len)) |
#define | CRC2(check, word) |
#define | CRC4(check, word) |
#define | LOAD() |
#define | RESTORE() |
#define | INITBITS() |
#define | PULLBYTE() |
#define | NEEDBITS(n) |
#define | BITS(n) ((unsigned)hold & ((1U << (n)) - 1)) |
#define | DROPBITS(n) |
#define | BYTEBITS() |
#define | REVERSE(q) |
Functions | |
local void fixedtables | OF ((struct inflate_state FAR *state)) |
local int updatewindow | OF ((z_streamp strm, unsigned out)) |
local unsigned syncsearch | OF ((unsigned FAR *have, unsigned char FAR *buf, unsigned len)) |
int ZEXPORT | inflateReset (z_streamp strm) |
int ZEXPORT | inflatePrime (z_streamp strm, int bits, int value) |
int ZEXPORT | inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size) |
int ZEXPORT | inflateInit_ (z_streamp strm, const char *version, int stream_size) |
local void | fixedtables (struct inflate_state FAR *state) |
local int | updatewindow (z_streamp strm, unsigned out) |
int ZEXPORT | inflate (z_streamp strm, int flush) |
int ZEXPORT | inflateEnd (z_streamp strm) |
int ZEXPORT | inflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength) |
int ZEXPORT | inflateGetHeader (z_streamp strm, gz_headerp head) |
local unsigned | syncsearch (unsigned FAR *have, unsigned char FAR *buf, unsigned len) |
int ZEXPORT | inflateSync (z_streamp strm) |
int ZEXPORT | inflateSyncPoint (z_streamp strm) |
int ZEXPORT | inflateCopy (z_streamp dest, z_streamp source) |
|
|
|
Value: do { \ hold >>= bits & 7; \ bits -= bits & 7; \ } while (0) |
|
Value: do { \ hbuf[0] = (unsigned char)(word); \ hbuf[1] = (unsigned char)((word) >> 8); \ check = crc32(check, hbuf, 2); \ } while (0) Definition at line 385 of file inflate.c. Referenced by inflate(). |
|
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) |
|
Value: do { \ hold >>= (n); \ bits -= (unsigned)(n); \ } while (0) |
|
Value: do { \ hold = 0; \ bits = 0; \ } while (0) |
|
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) |
|
Value: do { \ while (bits < (unsigned)(n)) \ PULLBYTE(); \ } while (0) |
|
Value: do { \ if (have == 0) goto inf_leave; \ have--; \ hold += (unsigned long)(*next++) << bits; \ bits += 8; \ } while (0) |
|
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) |
|
Value: ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \ (((q) & 0xff00) << 8) + (((q) & 0xff) << 24)) |
|
|
|
Definition at line 205 of file inflate.c. References distfix, DISTS, inflate_table(), lenfix, and LENS. |
|
Definition at line 554 of file inflate.c. References BAD, BITS, inflate_state::bits, inflate_state::check, CRC2, crc32(), inflate_state::flags, FLAGS, inflate_state::have, inflate_state::head, HEAD, inflate_state::hold, INITBITS, inflate_state::last, LOAD, inflate_state::mode, NEEDBITS, inflate_state::next, TYPE, TYPEDO, inflate_state::wrap, Z_DEFLATED, Z_NULL, Z_OK, and Z_STREAM_ERROR. Referenced by CZIPFile::File::Decompress(), CZIPFile::File::Extract(), CDownloadTransferED2K::OnCompressedPart(), CNeighbour::OnRead(), CHostBrowser::ReadContent(), uncompress(), and CBuffer::Ungzip(). |
|
Definition at line 1323 of file inflate.c. References inflate_state::codes, inflate_state::distcode, ENOUGH, inflate_state::lencode, inflate_state::next, inflate_state::wbits, inflate_state::window, inflate_state::wsize, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, ZALLOC, ZFREE, and zmemcpy(). |
|
Definition at line 1155 of file inflate.c. References Tracev, inflate_state::window, Z_NULL, Z_OK, Z_STREAM_ERROR, and ZFREE. Referenced by CDownloadTransferED2K::ClearRequests(), CZIPFile::File::Decompress(), CZIPFile::File::Extract(), CDownloadTransferED2K::OnCompressedPart(), CHostBrowser::Stop(), uncompress(), CBuffer::Ungzip(), and CNeighbour::~CNeighbour(). |
|
Definition at line 1211 of file inflate.c. References inflate_state::head, inflate_state::wrap, Z_NULL, Z_OK, and Z_STREAM_ERROR. |
|
Definition at line 144 of file inflate.c. References inflateReset(), Tracev, inflate_state::wbits, inflate_state::window, inflate_state::wrap, Z_MEM_ERROR, Z_NULL, Z_STREAM_ERROR, Z_VERSION_ERROR, ZALLOC, zcalloc(), zcfree(), ZFREE, and ZLIB_VERSION. Referenced by inflateInit_(). |
|
Definition at line 187 of file inflate.c. References DEF_WBITS, and inflateInit2_(). |
|
Definition at line 128 of file inflate.c. References inflate_state::bits, inflate_state::hold, Z_NULL, Z_OK, and Z_STREAM_ERROR. |
|
Definition at line 103 of file inflate.c. References inflate_state::bits, inflate_state::codes, inflate_state::distcode, inflate_state::dmax, inflate_state::havedict, inflate_state::head, HEAD, inflate_state::hold, inflate_state::last, inflate_state::lencode, inflate_state::mode, inflate_state::next, inflate_state::total, Tracev, inflate_state::whave, inflate_state::write, inflate_state::wsize, Z_NULL, Z_OK, and Z_STREAM_ERROR. Referenced by inflateInit2_(), and inflateSync(). |
|
Definition at line 1169 of file inflate.c. References adler32(), inflate_state::check, DICT, inflate_state::havedict, MEM, inflate_state::mode, Tracev, updatewindow(), inflate_state::whave, inflate_state::window, inflate_state::wrap, inflate_state::wsize, Z_DATA_ERROR, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, and zmemcpy(). |
|
Definition at line 1262 of file inflate.c. References inflate_state::bits, inflate_state::have, inflate_state::hold, inflateReset(), inflate_state::mode, SYNC, syncsearch(), TYPE, Z_BUF_ERROR, Z_DATA_ERROR, Z_NULL, Z_OK, and Z_STREAM_ERROR. |
|
Definition at line 1313 of file inflate.c. References inflate_state::bits, inflate_state::mode, STORED, Z_NULL, and Z_STREAM_ERROR. |
|
|
|
|
|
|
|
Definition at line 1239 of file inflate.c. References inflate_state::next. Referenced by inflateSync(). |
|
Definition at line 323 of file inflate.c. References inflate_state::wbits, inflate_state::whave, inflate_state::window, inflate_state::write, inflate_state::wsize, Z_NULL, ZALLOC, and zmemcpy(). Referenced by inflateSetDictionary(). |