Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include "deflate.h"
Go to the source code of this file.
Classes | |
struct | config_s |
Macros | |
#define | NIL 0 |
#define | TOO_FAR 4096 |
#define | RANK(f) (((f) * 2) - ((f) > 4 ? 9 : 0)) |
#define | UPDATE_HASH(s, h, c) (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask) |
#define | INSERT_STRING(s, str, match_head) |
#define | CLEAR_HASH(s) |
#define | HCRC_UPDATE(beg) |
#define | check_match(s, start, match, length) |
#define | FLUSH_BLOCK_ONLY(s, last) |
#define | FLUSH_BLOCK(s, last) |
#define | MAX_STORED 65535 |
#define | MIN(a, b) ((a) > (b) ? (b) : (a)) |
Typedefs | |
typedef block_state compress_func | OF((deflate_state *s, int flush)) |
typedef struct config_s | config |
Enumerations | |
enum | block_state { need_more , block_done , finish_started , finish_done } |
Functions | |
int deflateStateCheck | OF ((z_streamp strm)) |
void slide_hash | OF ((deflate_state *s)) |
void putShortMSB | OF ((deflate_state *s, uInt b)) |
unsigned read_buf | OF ((z_streamp strm, Bytef *buf, unsigned size)) |
uInt longest_match | OF ((deflate_state *s, IPos cur_match)) |
void | slide_hash (deflate_state *s) |
int ZEXPORT | deflateInit_ (z_streamp strm, int level, const char *version, int stream_size) |
int ZEXPORT | deflateInit2_ (z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size) |
int | deflateStateCheck (z_streamp strm) |
int ZEXPORT | deflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength) |
int ZEXPORT | deflateGetDictionary (z_streamp strm, Bytef *dictionary, uInt *dictLength) |
int ZEXPORT | deflateResetKeep (z_streamp strm) |
int ZEXPORT | deflateReset (z_streamp strm) |
int ZEXPORT | deflateSetHeader (z_streamp strm, gz_headerp head) |
int ZEXPORT | deflatePending (z_streamp strm, unsigned *pending, int *bits) |
int ZEXPORT | deflatePrime (z_streamp strm, int bits, int value) |
int ZEXPORT | deflateParams (z_streamp strm, int level, int strategy) |
int ZEXPORT | deflateTune (z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain) |
uLong ZEXPORT | deflateBound (z_streamp strm, uLong sourceLen) |
void | putShortMSB (deflate_state *s, uInt b) |
void | flush_pending (z_streamp strm) |
int ZEXPORT | deflate (z_streamp strm, int flush) |
int ZEXPORT | deflateEnd (z_streamp strm) |
int ZEXPORT | deflateCopy (z_streamp dest, z_streamp source) |
unsigned | read_buf (z_streamp strm, Bytef *buf, unsigned size) |
void | lm_init (deflate_state *s) |
uInt | longest_match (deflate_state *s, IPos cur_match) |
void | fill_window (deflate_state *s) |
block_state | deflate_stored (deflate_state *s, int flush) |
block_state | deflate_fast (deflate_state *s, int flush) |
block_state | deflate_slow (deflate_state *s, int flush) |
block_state | deflate_rle (deflate_state *s, int flush) |
block_state | deflate_huff (deflate_state *s, int flush) |
Variables | |
const char | deflate_copyright [] |
const config | configuration_table [10] |
#define CLEAR_HASH | ( | s | ) |
#define FLUSH_BLOCK | ( | s, | |
last | |||
) |
#define FLUSH_BLOCK_ONLY | ( | s, | |
last | |||
) |
#define HCRC_UPDATE | ( | beg | ) |
#define INSERT_STRING | ( | s, | |
str, | |||
match_head | |||
) |
#define UPDATE_HASH | ( | s, | |
h, | |||
c | |||
) | (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask) |
typedef block_state compress_func OF((deflate_state *s, int flush)) |
enum block_state |
Enumerator | |
---|---|
need_more | |
block_done | |
finish_started | |
finish_done |
Definition at line 65 of file deflate.c.
int ZEXPORT deflate | ( | z_streamp | strm, |
int | flush | ||
) |
Definition at line 807 of file deflate.c.
Referenced by compress2(), deflateParams(), and gz_comp().
block_state deflate_fast | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 1875 of file deflate.c.
block_state deflate_huff | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 2181 of file deflate.c.
Referenced by deflate().
block_state deflate_rle | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 2108 of file deflate.c.
Referenced by deflate().
block_state deflate_slow | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 1977 of file deflate.c.
block_state deflate_stored | ( | deflate_state * | s, |
int | flush | ||
) |
Definition at line 1688 of file deflate.c.
Referenced by deflate().
uLong ZEXPORT deflateBound | ( | z_streamp | strm, |
uLong | sourceLen | ||
) |
Definition at line 696 of file deflate.c.
Definition at line 1148 of file deflate.c.
int ZEXPORT deflateEnd | ( | z_streamp | strm | ) |
Definition at line 1122 of file deflate.c.
Referenced by compress2(), deflateCopy(), deflateInit2_(), and gzclose_w().
int ZEXPORT deflateGetDictionary | ( | z_streamp | strm, |
Bytef * | dictionary, | ||
uInt * | dictLength | ||
) |
Definition at line 488 of file deflate.c.
int ZEXPORT deflateInit2_ | ( | z_streamp | strm, |
int | level, | ||
int | method, | ||
int | windowBits, | ||
int | memLevel, | ||
int | strategy, | ||
const char * | version, | ||
int | stream_size | ||
) |
Definition at line 242 of file deflate.c.
Referenced by deflateInit_().
int ZEXPORT deflateInit_ | ( | z_streamp | strm, |
int | level, | ||
const char * | version, | ||
int | stream_size | ||
) |
Definition at line 230 of file deflate.c.
int ZEXPORT deflateParams | ( | z_streamp | strm, |
int | level, | ||
int | strategy | ||
) |
Definition at line 612 of file deflate.c.
Referenced by gzsetparams().
int ZEXPORT deflatePending | ( | z_streamp | strm, |
unsigned * | pending, | ||
int * | bits | ||
) |
int ZEXPORT deflatePrime | ( | z_streamp | strm, |
int | bits, | ||
int | value | ||
) |
Definition at line 585 of file deflate.c.
int ZEXPORT deflateReset | ( | z_streamp | strm | ) |
Definition at line 548 of file deflate.c.
Referenced by deflateInit2_(), and gz_comp().
int ZEXPORT deflateResetKeep | ( | z_streamp | strm | ) |
Definition at line 510 of file deflate.c.
Referenced by deflateReset().
int ZEXPORT deflateSetDictionary | ( | z_streamp | strm, |
const Bytef * | dictionary, | ||
uInt | dictLength | ||
) |
Definition at line 419 of file deflate.c.
int ZEXPORT deflateSetHeader | ( | z_streamp | strm, |
gz_headerp | head | ||
) |
int deflateStateCheck | ( | z_streamp | strm | ) |
Definition at line 396 of file deflate.c.
Referenced by deflate(), deflateBound(), deflateCopy(), deflateEnd(), deflateGetDictionary(), deflateParams(), deflatePending(), deflatePrime(), deflateResetKeep(), deflateSetDictionary(), deflateSetHeader(), and deflateTune().
int ZEXPORT deflateTune | ( | z_streamp | strm, |
int | good_length, | ||
int | max_lazy, | ||
int | nice_length, | ||
int | max_chain | ||
) |
Definition at line 661 of file deflate.c.
void fill_window | ( | deflate_state * | s | ) |
Definition at line 1525 of file deflate.c.
Referenced by deflate_fast(), deflate_huff(), deflate_rle(), deflate_slow(), and deflateSetDictionary().
void flush_pending | ( | z_streamp | strm | ) |
Definition at line 774 of file deflate.c.
Referenced by deflate(), and deflate_stored().
void lm_init | ( | deflate_state * | s | ) |
Definition at line 1237 of file deflate.c.
Referenced by deflateReset().
uInt longest_match | ( | deflate_state * | s, |
IPos | cur_match | ||
) |
Definition at line 1279 of file deflate.c.
Referenced by deflate_fast(), and deflate_slow().
void slide_hash OF | ( | (deflate_state *s) | ) |
uInt longest_match OF | ( | (deflate_state *s, IPos cur_match) | ) |
void putShortMSB OF | ( | (deflate_state *s, uInt b) | ) |
int deflateStateCheck OF | ( | (z_streamp strm) | ) |
void putShortMSB | ( | deflate_state * | s, |
uInt | b | ||
) |
unsigned read_buf | ( | z_streamp | strm, |
Bytef * | buf, | ||
unsigned | size | ||
) |
Definition at line 1207 of file deflate.c.
Referenced by deflate_stored(), and fill_window().
void slide_hash | ( | deflate_state * | s | ) |
Definition at line 203 of file deflate.c.
Referenced by deflateParams(), and fill_window().
const config configuration_table[10] |
Definition at line 133 of file deflate.c.
Referenced by deflate(), deflateParams(), and lm_init().