Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"
Go to the source code of this file.
Macros | |
#define | UPDATE_CHECK(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 BYTEBITS | ( | ) |
#define CRC2 | ( | check, | |
word | |||
) |
#define CRC4 | ( | check, | |
word | |||
) |
#define DROPBITS | ( | n | ) |
#define INITBITS | ( | ) |
#define LOAD | ( | ) |
#define NEEDBITS | ( | n | ) |
#define PULLBYTE | ( | ) |
#define RESTORE | ( | ) |
void fixedtables | ( | struct inflate_state FAR * | state | ) |
Definition at line 281 of file inflate.c.
References bits(), DISTS, fixed(), inflate_table(), LENS, inflate_state::next, and sym.
Referenced by inflate().
Definition at line 625 of file inflate.c.
References adler32(), BAD, BITS, bits(), code::bits, BYTEBITS, CHECK, CODELENS, CODES, COMMENT, COPY, COPY_, CRC2, crc32(), CRC4, DICT, DICTID, DIST, DISTEXT, DISTS, DONE, DROPBITS, EXLEN, EXTRA, FAR, fixedtables(), FLAGS, GUNZIP, inflate_state::have, HCRC, HEAD, inflate_state::hold, if(), in(), inflate_fast(), inflate_table(), inflateStateCheck(), INITBITS, int(), L, last, len, LEN, LEN_, LENEXT, LENGTH, LENLENS, LENS, LIT, LOAD, MATCH, MEM, NAME, NEEDBITS, state::next, inflate_state::next, code::op, OS, out, PULLBYTE, RESTORE, STORED, inflate_state::strm, SYNC, TABLE, TIME, Trace, Tracev, Tracevv, TYPE, TYPEDO, UPDATE_CHECK, updatewindow(), code::val, Z_BLOCK, Z_BUF_ERROR, z_const, Z_DATA_ERROR, Z_DEFLATED, Z_FINISH, Z_MEM_ERROR, Z_NEED_DICT, Z_NULL, Z_OK, Z_STREAM_END, Z_STREAM_ERROR, Z_TREES, zmemcpy, and ZSWAP32.
Referenced by deflate_index_build(), deflate_index_extract(), gz_decomp(), gzcopy(), gzip_normalize(), gzscan(), inf(), main(), recompress(), uncompress2(), and unzReadCurrentFile().
Definition at line 1588 of file inflate.c.
References FAR, inflateStateCheck(), state::next, and inflate_state::strm.
Definition at line 1495 of file inflate.c.
References inflate_state::codes, inflate_state::distcode, ENOUGH, FAR, inflateStateCheck(), inflate_state::lencode, state::next, inflate_state::next, inflate_state::strm, inflate_state::window, inflate_state::wsize, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, ZALLOC, ZFREE, and zmemcpy.
Definition at line 1304 of file inflate.c.
References FAR, if(), inflateStateCheck(), inflate_state::strm, Tracev, Z_NULL, Z_OK, Z_STREAM_ERROR, and ZFREE.
Referenced by deflate_index_build(), deflate_index_extract(), gzclose_r(), gzcopy(), gzip_normalize(), gzscan(), inf(), main(), uncompress2(), and unzCloseCurrentFile().
Definition at line 1318 of file inflate.c.
References FAR, if(), inflateStateCheck(), inflate_state::strm, Z_NULL, Z_OK, Z_STREAM_ERROR, and zmemcpy.
int ZEXPORT inflateGetHeader | ( | z_streamp | strm, |
gz_headerp | head | ||
) |
Definition at line 1376 of file inflate.c.
References FAR, inflate_state::head, if(), inflateStateCheck(), inflate_state::strm, Z_OK, and Z_STREAM_ERROR.
Definition at line 198 of file inflate.c.
References FAR, HEAD, inflateReset2(), internal_state::strm, inflate_state::strm, Tracev, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, Z_VERSION_ERROR, ZALLOC, zcalloc(), zcfree(), ZFREE, and ZLIB_VERSION.
Referenced by inflateInit_().
Definition at line 242 of file inflate.c.
References DEF_WBITS, inflateInit2_(), and internal_state::strm.
Definition at line 1575 of file inflate.c.
References COPY, FAR, inflateStateCheck(), long(), MATCH, and inflate_state::strm.
Definition at line 250 of file inflate.c.
References bits(), FAR, if(), inflateStateCheck(), inflate_state::strm, Z_OK, and Z_STREAM_ERROR.
Referenced by deflate_index_extract().
Definition at line 145 of file inflate.c.
References FAR, inflateResetKeep(), inflateStateCheck(), inflate_state::strm, and Z_STREAM_ERROR.
Referenced by deflate_index_build(), gz_look(), gzip_normalize(), inflateReset2(), inflateSync(), and main().
Definition at line 158 of file inflate.c.
References FAR, if(), inflateReset(), inflateStateCheck(), inflate_state::strm, inflate_state::wrap, Z_NULL, Z_STREAM_ERROR, and ZFREE.
Referenced by deflate_index_extract(), and inflateInit2_().
Definition at line 119 of file inflate.c.
References FAR, HEAD, if(), inflateStateCheck(), state::next, inflate_state::strm, Tracev, Z_NULL, Z_OK, and Z_STREAM_ERROR.
Referenced by inflateReset().
Definition at line 1341 of file inflate.c.
References adler32(), DICT, FAR, if(), inflateStateCheck(), L, MEM, inflate_state::strm, Tracev, updatewindow(), Z_DATA_ERROR, Z_MEM_ERROR, Z_NULL, Z_OK, and Z_STREAM_ERROR.
Referenced by deflate_index_extract().
Definition at line 105 of file inflate.c.
References FAR, HEAD, if(), inflate_state::strm, SYNC, and Z_NULL.
Referenced by inflate(), inflateCodesUsed(), inflateCopy(), inflateEnd(), inflateGetDictionary(), inflateGetHeader(), inflateMark(), inflatePrime(), inflateReset(), inflateReset2(), inflateResetKeep(), inflateSetDictionary(), inflateSync(), inflateSyncPoint(), inflateUndermine(), and inflateValidate().
Definition at line 1427 of file inflate.c.
References FAR, inflate_state::flags, if(), in(), inflateReset(), inflateStateCheck(), len, out, inflate_state::strm, SYNC, syncsearch(), TYPE, Z_BUF_ERROR, Z_DATA_ERROR, Z_OK, and Z_STREAM_ERROR.
Definition at line 1485 of file inflate.c.
References FAR, inflateStateCheck(), STORED, inflate_state::strm, and Z_STREAM_ERROR.
Definition at line 1542 of file inflate.c.
References FAR, inflateStateCheck(), inflate_state::strm, Z_DATA_ERROR, Z_OK, and Z_STREAM_ERROR.
Definition at line 1560 of file inflate.c.
References inflate_state::check, FAR, if(), inflateStateCheck(), inflate_state::strm, Z_OK, and Z_STREAM_ERROR.
void fixedtables OF | ( | (struct inflate_state FAR *state) | ) |
int inflateStateCheck OF | ( | (z_streamp strm) | ) |
int updatewindow OF | ( | (z_streamp strm, const unsigned char FAR *end, unsigned copy) | ) |
Definition at line 1404 of file inflate.c.
References inflate_state::have, len, and inflate_state::next.
Referenced by inflateSync().