Geant4.10
|
#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, 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() |
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 | inflateResetKeep (z_streamp strm) |
int ZEXPORT | inflateReset (z_streamp strm) |
int ZEXPORT | inflateReset2 (z_streamp strm, int windowBits) |
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) |
int ZEXPORT | inflatePrime (z_streamp strm, int bits, int value) |
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) |
int ZEXPORT | inflateUndermine (z_streamp strm, int subvert) |
long ZEXPORT | inflateMark (z_streamp strm) |
#define BITS | ( | n | ) | ((unsigned)hold & ((1U << (n)) - 1)) |
Definition at line 488 of file inflate.cc.
Referenced by inflate().
#define BYTEBITS | ( | ) |
#define CRC2 | ( | check, | |
word | |||
) |
Definition at line 423 of file inflate.cc.
Referenced by inflate().
#define CRC4 | ( | check, | |
word | |||
) |
Definition at line 430 of file inflate.cc.
Referenced by inflate().
#define DROPBITS | ( | n | ) |
#define INITBITS | ( | ) |
Definition at line 463 of file inflate.cc.
Referenced by inflate().
#define LOAD | ( | ) |
Definition at line 441 of file inflate.cc.
Referenced by inflate().
#define NEEDBITS | ( | n | ) |
Definition at line 481 of file inflate.cc.
Referenced by inflate().
#define PULLBYTE | ( | ) |
Definition at line 471 of file inflate.cc.
Referenced by inflate().
#define RESTORE | ( | ) |
Definition at line 452 of file inflate.cc.
Referenced by inflate().
#define UPDATE | ( | check, | |
buf, | |||
len | |||
) | (state->flags ? crc32(check, buf, len) : adler32(check, buf, len)) |
Definition at line 415 of file inflate.cc.
Referenced by inflate().
local void fixedtables | ( | struct inflate_state FAR * | state | ) |
Definition at line 246 of file inflate.cc.
References inflate_state::bits, DISTS, inflate_table(), LENS, and inflate_state::next.
Referenced by inflate().
Definition at line 587 of file inflate.cc.
References adler32(), inflate_state::back, BAD, code::bits, inflate_state::bits, BITS, BYTEBITS, CHECK, inflate_state::check, CODELENS, CODES, inflate_state::codes, COMMENT, COPY, copy(), COPY_, CRC2, crc32(), CRC4, DICT, DICTID, DIST, inflate_state::distbits, inflate_state::distcode, DISTEXT, DISTS, inflate_state::dmax, DONE, DROPBITS, EXLEN, EXTRA, inflate_state::extra, fixedtables(), FLAGS, inflate_state::flags, GUNZIP, inflate_state::have, inflate_state::havedict, HCRC, HEAD, inflate_state::head, inflate_state::hold, inflate_fast(), inflate_table(), INITBITS, int(), inflate_state::last, left, LEN, LEN_, inflate_state::lenbits, inflate_state::lencode, LENEXT, LENGTH, inflate_state::length, LENLENS, LENS, inflate_state::lens, LIT, LOAD, MATCH, MEM, inflate_state::mode, NAME, inflate_state::ncode, inflate_state::ndist, NEEDBITS, inflate_state::next, inflate_state::nlen, inflate_state::offset, code::op, OS_zlib, PULLBYTE, RESTORE, inflate_state::sane, STORED, SYNC, TABLE, TIME, inflate_state::total, Trace, Tracev, Tracevv, TYPE, TYPEDO, UPDATE, updatewindow(), code::val, inflate_state::was, inflate_state::wbits, inflate_state::whave, inflate_state::window, inflate_state::wnext, inflate_state::work, inflate_state::wrap, inflate_state::wsize, Z_BLOCK, Z_BUF_ERROR, 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 gz_decomp(), and uncompress().
Definition at line 1392 of file inflate.cc.
References copy(), ENOUGH, 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 1234 of file inflate.cc.
References Tracev, inflate_state::window, Z_NULL, Z_OK, Z_STREAM_ERROR, and ZFREE.
Referenced by gzclose_r(), and uncompress().
int ZEXPORT inflateGetHeader | ( | z_streamp | strm, |
gz_headerp | head | ||
) |
Definition at line 1287 of file inflate.cc.
References inflate_state::head, inflate_state::wrap, Z_NULL, Z_OK, and Z_STREAM_ERROR.
Definition at line 175 of file inflate.cc.
References inflateReset2(), Tracev, inflate_state::window, 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 213 of file inflate.cc.
References DEF_WBITS, and inflateInit2_().
long ZEXPORT inflateMark | ( | z_streamp | strm | ) |
Definition at line 1452 of file inflate.cc.
References inflate_state::back, COPY, inflate_state::length, MATCH, inflate_state::mode, inflate_state::was, and Z_NULL.
Definition at line 218 of file inflate.cc.
References inflate_state::bits, inflate_state::hold, Z_NULL, Z_OK, and Z_STREAM_ERROR.
Definition at line 127 of file inflate.cc.
References inflateResetKeep(), inflate_state::whave, inflate_state::wnext, inflate_state::wsize, Z_NULL, and Z_STREAM_ERROR.
Referenced by gz_look(), inflateReset2(), and inflateSync().
Definition at line 139 of file inflate.cc.
References inflateReset(), inflate_state::wbits, inflate_state::window, inflate_state::wrap, G4INCL::String::wrap(), Z_NULL, Z_STREAM_ERROR, and ZFREE.
Referenced by inflateInit2_().
Definition at line 103 of file inflate.cc.
References inflate_state::back, inflate_state::bits, inflate_state::codes, inflate_state::distcode, inflate_state::dmax, inflate_state::havedict, HEAD, inflate_state::head, inflate_state::hold, inflate_state::last, inflate_state::lencode, inflate_state::mode, inflate_state::next, inflate_state::sane, inflate_state::total, Tracev, inflate_state::wrap, Z_NULL, Z_OK, and Z_STREAM_ERROR.
Referenced by inflateReset().
Definition at line 1247 of file inflate.cc.
References adler32(), inflate_state::check, DICT, inflate_state::havedict, MEM, inflate_state::mode, inflate_state::next, Tracev, updatewindow(), inflate_state::wrap, Z_DATA_ERROR, Z_MEM_ERROR, Z_NULL, Z_OK, and Z_STREAM_ERROR.
Definition at line 1333 of file inflate.cc.
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 1383 of file inflate.cc.
References inflate_state::bits, inflate_state::mode, STORED, Z_NULL, and Z_STREAM_ERROR.
Definition at line 1437 of file inflate.cc.
References inflate_state::sane, Z_DATA_ERROR, Z_NULL, Z_OK, and Z_STREAM_ERROR.
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) | ) |
local unsigned syncsearch | ( | unsigned FAR * | have, |
unsigned char FAR * | buf, | ||
unsigned | len | ||
) |
Definition at line 1313 of file inflate.cc.
References inflate_state::have, and inflate_state::next.
Referenced by inflateSync().
Definition at line 363 of file inflate.cc.
References copy(), inflate_state::wbits, inflate_state::whave, inflate_state::window, inflate_state::wnext, inflate_state::wsize, Z_NULL, ZALLOC, and zmemcpy().
Referenced by inflate(), and inflateSetDictionary().