Geant4  10.00.p01
infback.cc File Reference
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"
+ Include dependency graph for infback.cc:

Go to the source code of this file.

Macros

#define LOAD()
 
#define RESTORE()
 
#define INITBITS()
 
#define PULL()
 
#define PULLBYTE()
 
#define NEEDBITS(n)
 
#define BITS(n)   ((unsigned)hold & ((1U << (n)) - 1))
 
#define DROPBITS(n)
 
#define BYTEBITS()
 
#define ROOM()
 

Functions

local void fixedtables OF ((struct inflate_state FAR *state))
 
int ZEXPORT inflateBackInit_ (z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
 
local void fixedtables (struct inflate_state FAR *state)
 
int ZEXPORT inflateBack (z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
 
int ZEXPORT inflateBackEnd (z_streamp strm)
 

Macro Definition Documentation

#define BITS (   n)    ((unsigned)hold & ((1U << (n)) - 1))

Definition at line 184 of file infback.cc.

Referenced by inflateBack().

#define BYTEBITS ( )
Value:
do { \
hold >>= bits & 7; \
bits -= bits & 7; \
} while (0)

Definition at line 195 of file infback.cc.

Referenced by inflateBack().

#define DROPBITS (   n)
Value:
do { \
hold >>= (n); \
bits -= (unsigned)(n); \
} while (0)
const G4int n

Definition at line 188 of file infback.cc.

Referenced by inflateBack().

#define INITBITS ( )
Value:
do { \
hold = 0; \
bits = 0; \
} while (0)

Definition at line 144 of file infback.cc.

Referenced by inflateBack().

#define LOAD ( )
Value:
do { \
put = strm->next_out; \
left = strm->avail_out; \
next = strm->next_in; \
have = strm->avail_in; \
hold = state->hold; \
bits = state->bits; \
} while (0)

Definition at line 122 of file infback.cc.

Referenced by inflateBack().

#define NEEDBITS (   n)
Value:
do { \
while (bits < (unsigned)(n)) \
} while (0)
const G4int n
#define PULLBYTE()
Definition: infback.cc:166

Definition at line 177 of file infback.cc.

Referenced by inflateBack().

#define PULL ( )
Value:
do { \
if (have == 0) { \
have = in(in_desc, &next); \
if (have == 0) { \
next = Z_NULL; \
ret = Z_BUF_ERROR; \
goto inf_leave; \
} \
} \
} while (0)

Definition at line 152 of file infback.cc.

Referenced by inflateBack().

#define PULLBYTE ( )
Value:
do { \
PULL(); \
have--; \
hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)
#define PULL()
Definition: infback.cc:152

Definition at line 166 of file infback.cc.

Referenced by inflateBack().

#define RESTORE ( )
Value:
do { \
strm->next_out = put; \
strm->avail_out = left; \
strm->next_in = next; \
strm->avail_in = have; \
state->hold = hold; \
state->bits = bits; \
} while (0)

Definition at line 133 of file infback.cc.

Referenced by inflateBack().

#define ROOM ( )
Value:
do { \
if (left == 0) { \
put = state->window; \
left = state->wsize; \
state->whave = left; \
if (out(out_desc, put, left)) { \
ret = Z_BUF_ERROR; \
goto inf_leave; \
} \
} \
} while (0)

Definition at line 204 of file infback.cc.

Referenced by inflateBack().

Function Documentation

local void fixedtables ( struct inflate_state FAR *  state)

Definition at line 77 of file infback.cc.

References inflate_table().

Referenced by inflateBack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ZEXPORT inflateBack ( z_streamp  strm,
in_func  in,
void FAR *  in_desc,
out_func  out,
void FAR *  out_desc 
)

Definition at line 244 of file infback.cc.

References BITS, BYTEBITS, copy(), DROPBITS, fixedtables(), inflate_fast(), inflate_table(), INITBITS, left, LOAD, NEEDBITS, PULL, PULLBYTE, RESTORE, ROOM, and zmemcpy().

+ Here is the call graph for this function:

int ZEXPORT inflateBackEnd ( z_streamp  strm)

Definition at line 620 of file infback.cc.

int ZEXPORT inflateBackInit_ ( z_streamp  strm,
int  windowBits,
unsigned char FAR *  window,
const char *  version,
int  stream_size 
)

Definition at line 28 of file infback.cc.

References zcalloc(), and zcfree().

+ Here is the call graph for this function:

local void fixedtables OF ( (struct inflate_state FAR *state)  )