Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
infback9.c File Reference
#include "zutil.h"
#include "infback9.h"
#include "inftree9.h"
#include "inflate9.h"
#include "inffix9.h"
Include dependency graph for infback9.c:

Go to the source code of this file.

Macros

#define WSIZE   65536UL
 
#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

int ZEXPORT inflateBack9Init_ (z_stream FAR *strm, unsigned char FAR *window, const char *version, int stream_size)
 
int ZEXPORT inflateBack9 (z_stream FAR *strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
 
int ZEXPORT inflateBack9End (z_stream FAR *strm)
 

Macro Definition Documentation

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

Definition at line 157 of file infback9.c.

#define BYTEBITS ( )
Value:
do { \
hold >>= bits & 7; \
bits -= bits & 7; \
} while (0)
static int bits(struct state *s, int need)
Definition: blast.c:68

Definition at line 168 of file infback9.c.

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

Definition at line 161 of file infback9.c.

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

Definition at line 117 of file infback9.c.

#define NEEDBITS (   n)
Value:
do { \
while (bits < (unsigned)(n)) \
PULLBYTE(); \
} while (0)
static int bits(struct state *s, int need)
Definition: blast.c:68

Definition at line 150 of file infback9.c.

#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)
#define Z_BUF_ERROR
Definition: zlib.h:180
static unsigned in(void *in_desc, z_const unsigned char **buf)
Definition: gun.c:89
#define Z_NULL
Definition: zlib.h:208

Definition at line 125 of file infback9.c.

#define PULLBYTE ( )
Value:
do { \
PULL(); \
have--; \
hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)
static int bits(struct state *s, int need)
Definition: blast.c:68

Definition at line 139 of file infback9.c.

#define ROOM ( )
Value:
do { \
if (left == 0) { \
put = window; \
left = WSIZE; \
wrap = 1; \
if (out(out_desc, put, (unsigned)left)) { \
ret = Z_BUF_ERROR; \
goto inf_leave; \
} \
} \
} while (0)
#define WSIZE
Definition: infback9.c:11
static int out(void *out_desc, unsigned char *buf, unsigned len)
Definition: gun.c:131
#define Z_BUF_ERROR
Definition: zlib.h:180

Definition at line 177 of file infback9.c.

#define WSIZE   65536UL

Definition at line 11 of file infback9.c.

Function Documentation

int ZEXPORT inflateBack9 ( z_stream FAR strm,
in_func  in,
void FAR in_desc,
out_func  out,
void FAR out_desc 
)

Definition at line 217 of file infback9.c.

int ZEXPORT inflateBack9End ( z_stream FAR strm)

Definition at line 606 of file infback9.c.

int ZEXPORT inflateBack9Init_ ( z_stream FAR strm,
unsigned char FAR window,
const char *  version,
int  stream_size 
)

Definition at line 19 of file infback9.c.