Geant4 11.2.2
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) |
#define | UPDATE_HASH(s, h, c) |
#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) |
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 | |
local int deflateStateCheck | OF ((z_streamp strm)) |
local void slide_hash | OF ((deflate_state *s)) |
local void putShortMSB | OF ((deflate_state *s, uInt b)) |
local unsigned read_buf | OF ((z_streamp strm, Bytef *buf, unsigned size)) |
local uInt longest_match | OF ((deflate_state *s, IPos cur_match)) |
local 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) |
local 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) |
local void | putShortMSB (deflate_state *s, uInt b) |
local 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) |
local unsigned | read_buf (z_streamp strm, Bytef *buf, unsigned size) |
local void | lm_init (deflate_state *s) |
local uInt | longest_match (deflate_state *s, IPos cur_match) |
local void | fill_window (deflate_state *s) |
local block_state | deflate_stored (deflate_state *s, int flush) |
local block_state | deflate_fast (deflate_state *s, int flush) |
local block_state | deflate_slow (deflate_state *s, int flush) |
local block_state | deflate_rle (deflate_state *s, int flush) |
local block_state | deflate_huff (deflate_state *s, int flush) |
Variables | |
const char | deflate_copyright [] |
local const config | configuration_table [10] |
#define check_match | ( | s, | |
start, | |||
match, | |||
length ) |
Definition at line 1518 of file deflate.c.
Referenced by deflate_fast(), deflate_rle(), and deflate_slow().
#define CLEAR_HASH | ( | s | ) |
Definition at line 186 of file deflate.c.
Referenced by deflate(), deflateParams(), deflateSetDictionary(), and lm_init().
#define FLUSH_BLOCK | ( | s, | |
last ) |
Definition at line 1668 of file deflate.c.
Referenced by deflate_fast(), deflate_huff(), deflate_rle(), and deflate_slow().
#define FLUSH_BLOCK_ONLY | ( | s, | |
last ) |
Definition at line 1656 of file deflate.c.
Referenced by deflate_slow().
#define HCRC_UPDATE | ( | beg | ) |
Definition at line 811 of file deflate.c.
Referenced by deflate().
#define INSERT_STRING | ( | s, | |
str, | |||
match_head ) |
Definition at line 176 of file deflate.c.
Referenced by deflate_fast(), and deflate_slow().
#define MAX_STORED 65535 |
Definition at line 1674 of file deflate.c.
Referenced by deflate_stored().
#define MIN | ( | a, | |
b ) |
Definition at line 1677 of file deflate.c.
Referenced by deflate_stored().
#define NIL 0 |
Definition at line 101 of file deflate.c.
Referenced by deflate_fast(), deflate_slow(), longest_match(), and slide_hash().
#define RANK | ( | f | ) |
#define TOO_FAR 4096 |
Definition at line 105 of file deflate.c.
Referenced by deflate_slow().
#define UPDATE_HASH | ( | s, | |
h, | |||
c ) |
Definition at line 157 of file deflate.c.
Referenced by deflate_fast(), deflateSetDictionary(), and fill_window().
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 66 of file deflate.c.
int ZEXPORT deflate | ( | z_streamp | strm, |
int | flush ) |
Definition at line 819 of file deflate.c.
Referenced by compress2(), deflateParams(), and gz_comp().
local block_state deflate_fast | ( | deflate_state * | s, |
int | flush ) |
Definition at line 1881 of file deflate.c.
local block_state deflate_huff | ( | deflate_state * | s, |
int | flush ) |
Definition at line 2188 of file deflate.c.
Referenced by deflate().
local block_state deflate_rle | ( | deflate_state * | s, |
int | flush ) |
Definition at line 2114 of file deflate.c.
Referenced by deflate().
local block_state deflate_slow | ( | deflate_state * | s, |
int | flush ) |
Definition at line 1983 of file deflate.c.
local block_state deflate_stored | ( | deflate_state * | s, |
int | flush ) |
Definition at line 1694 of file deflate.c.
Referenced by deflate().
uLong ZEXPORT deflateBound | ( | z_streamp | strm, |
uLong | sourceLen ) |
Definition at line 700 of file deflate.c.
Definition at line 1160 of file deflate.c.
int ZEXPORT deflateEnd | ( | z_streamp | strm | ) |
Definition at line 1134 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 485 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 237 of file deflate.c.
Referenced by deflateInit_().
int ZEXPORT deflateInit_ | ( | z_streamp | strm, |
int | level, | ||
const char * | version, | ||
int | stream_size ) |
Definition at line 225 of file deflate.c.
int ZEXPORT deflateParams | ( | z_streamp | strm, |
int | level, | ||
int | strategy ) |
Definition at line 609 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 582 of file deflate.c.
int ZEXPORT deflateReset | ( | z_streamp | strm | ) |
Definition at line 545 of file deflate.c.
Referenced by deflateInit2_(), and gz_comp().
int ZEXPORT deflateResetKeep | ( | z_streamp | strm | ) |
Definition at line 507 of file deflate.c.
Referenced by deflateReset().
int ZEXPORT deflateSetDictionary | ( | z_streamp | strm, |
const Bytef * | dictionary, | ||
uInt | dictLength ) |
Definition at line 416 of file deflate.c.
int ZEXPORT deflateSetHeader | ( | z_streamp | strm, |
gz_headerp | head ) |
Definition at line 393 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 658 of file deflate.c.
local void fill_window | ( | deflate_state * | s | ) |
Definition at line 1531 of file deflate.c.
Referenced by deflate_fast(), deflate_huff(), deflate_rle(), deflate_slow(), and deflateSetDictionary().
Definition at line 786 of file deflate.c.
Referenced by deflate(), and deflate_stored().
local void lm_init | ( | deflate_state * | s | ) |
Definition at line 1249 of file deflate.c.
Referenced by deflateReset().
local uInt longest_match | ( | deflate_state * | s, |
IPos | cur_match ) |
Definition at line 1282 of file deflate.c.
Referenced by deflate_fast(), and deflate_slow().
local void slide_hash OF | ( | (deflate_state *s) | ) |
local uInt longest_match OF | ( | (deflate_state *s, IPos cur_match) | ) |
local void putShortMSB OF | ( | (deflate_state *s, uInt b) | ) |
local int deflateStateCheck OF | ( | (z_streamp strm) | ) |
local void putShortMSB | ( | deflate_state * | s, |
uInt | b ) |
Definition at line 1219 of file deflate.c.
Referenced by deflate_stored(), and fill_window().
local void slide_hash | ( | deflate_state * | s | ) |
Definition at line 198 of file deflate.c.
Referenced by deflateParams(), and fill_window().
Definition at line 128 of file deflate.c.
Referenced by deflate(), deflateParams(), and lm_init().