Geant4
10.02.p02
|
#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, const unsigned char FAR *end, unsigned copy)) |
local unsigned syncsearch | OF ((unsigned FAR *have, const 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, const Bytef *end, unsigned copy) |
int ZEXPORT | inflate (z_streamp strm, int flush) |
int ZEXPORT | inflateEnd (z_streamp strm) |
int ZEXPORT | inflateGetDictionary (z_streamp strm, Bytef *dictionary, uInt *dictLength) |
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, const 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 | ( | ) |
Definition at line 499 of file inflate.cc.
Referenced by inflate().
#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 | ) |
Definition at line 492 of file inflate.cc.
Referenced by inflate().
#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 247 of file inflate.cc.
References inflate_table().
Referenced by inflate().
int ZEXPORT inflate | ( | z_streamp | strm, |
int | flush | ||
) |
Definition at line 587 of file inflate.cc.
References adler32(), BITS, BYTEBITS, CRC2, crc32(), CRC4, DROPBITS, fixedtables(), inflate_fast(), inflate_table(), INITBITS, L, left, LOAD, MATCH(), NEEDBITS, PULLBYTE, RESTORE, Trace, UPDATE, updatewindow(), and zmemcpy().
Referenced by gz_decomp(), and uncompress().
int ZEXPORT inflateCopy | ( | z_streamp | dest, |
z_streamp | source | ||
) |
Definition at line 1404 of file inflate.cc.
References zmemcpy().
int ZEXPORT inflateEnd | ( | z_streamp | strm | ) |
Definition at line 1234 of file inflate.cc.
Referenced by gzclose_r(), and uncompress().
int ZEXPORT inflateGetDictionary | ( | z_streamp | strm, |
Bytef * | dictionary, | ||
uInt * | dictLength | ||
) |
Definition at line 1247 of file inflate.cc.
References zmemcpy().
int ZEXPORT inflateGetHeader | ( | z_streamp | strm, |
gz_headerp | head | ||
) |
Definition at line 1299 of file inflate.cc.
int ZEXPORT inflateInit2_ | ( | z_streamp | strm, |
int | windowBits, | ||
const char * | version, | ||
int | stream_size | ||
) |
Definition at line 176 of file inflate.cc.
References inflateReset2(), zcalloc(), and zcfree().
Referenced by inflateInit_().
int ZEXPORT inflateInit_ | ( | z_streamp | strm, |
const char * | version, | ||
int | stream_size | ||
) |
Definition at line 214 of file inflate.cc.
References inflateInit2_().
long ZEXPORT inflateMark | ( | z_streamp | strm | ) |
int ZEXPORT inflatePrime | ( | z_streamp | strm, |
int | bits, | ||
int | value | ||
) |
Definition at line 219 of file inflate.cc.
References L.
int ZEXPORT inflateReset | ( | z_streamp | strm | ) |
Definition at line 128 of file inflate.cc.
References inflateResetKeep().
Referenced by gz_look(), inflateReset2(), and inflateSync().
int ZEXPORT inflateReset2 | ( | z_streamp | strm, |
int | windowBits | ||
) |
Definition at line 140 of file inflate.cc.
References inflateReset().
Referenced by inflateInit2_().
int ZEXPORT inflateResetKeep | ( | z_streamp | strm | ) |
Definition at line 104 of file inflate.cc.
Referenced by inflateReset().
int ZEXPORT inflateSetDictionary | ( | z_streamp | strm, |
const Bytef * | dictionary, | ||
uInt | dictLength | ||
) |
Definition at line 1267 of file inflate.cc.
References adler32(), L, and updatewindow().
int ZEXPORT inflateSync | ( | z_streamp | strm | ) |
Definition at line 1345 of file inflate.cc.
References inflateReset(), and syncsearch().
int ZEXPORT inflateSyncPoint | ( | z_streamp | strm | ) |
Definition at line 1395 of file inflate.cc.
int ZEXPORT inflateUndermine | ( | z_streamp | strm, |
int | subvert | ||
) |
Definition at line 1449 of file inflate.cc.
local void fixedtables OF | ( | (struct inflate_state FAR *state) | ) |
local int updatewindow OF | ( | (z_streamp strm, const unsigned char FAR *end, unsigned copy) | ) |
local unsigned syncsearch OF | ( | (unsigned FAR *have, const unsigned char FAR *buf, unsigned len) | ) |
local unsigned syncsearch | ( | unsigned FAR * | have, |
const unsigned char FAR * | buf, | ||
unsigned | len | ||
) |
Definition at line 1325 of file inflate.cc.
Referenced by inflateSync().
local int updatewindow | ( | z_streamp | strm, |
const Bytef * | end, | ||
unsigned | copy | ||
) |
Definition at line 364 of file inflate.cc.
References zmemcpy().
Referenced by inflate(), and inflateSetDictionary().