Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

inflate.c File Reference

#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"

Defines

#define UPDATE(check, buf, len)   adler32(check, buf, len)
#define LOAD()
#define RESTORE()
#define INITBITS()
#define PULLBYTE()
#define NEEDBITS(n)
#define BITS(n)   ((unsigned)hold & ((1U << (n)) - 1))
#define DROPBITS(n)
#define BYTEBITS()
#define REVERSE(q)

Functions

local void fixedtables OF ((struct inflate_state FAR *state))
local int updatewindow OF ((z_streamp strm, unsigned out))
local unsigned syncsearch OF ((unsigned FAR *have, unsigned char FAR *buf, unsigned len))
int ZEXPORT inflateReset (strm) z_streamp strm

Variables

int windowBits
const char * version
int stream_size
unsigned out
int flush
const Bytef * dictionary
uInt dictLength
unsigned char FAR * buf
unsigned len
z_streamp source

Define Documentation

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

 
#define BYTEBITS (    ) 
 

Value:

do { \
        hold >>= bits & 7; \
        bits -= bits & 7; \
    } while (0)

#define DROPBITS (  n    ) 
 

Value:

do { \
        hold >>= (n); \
        bits -= (unsigned)(n); \
    } while (0)

 
#define INITBITS (    ) 
 

Value:

do { \
        hold = 0; \
        bits = 0; \
    } while (0)

 
#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)

#define NEEDBITS (  n    ) 
 

Value:

do { \
        while (bits < (unsigned)(n)) \
            PULLBYTE(); \
    } while (0)

 
#define PULLBYTE (    ) 
 

Value:

do { \
        if (have == 0) goto inf_leave; \
        have--; \
        hold += (unsigned long)(*next++) << bits; \
        bits += 8; \
    } while (0)

 
#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)

#define REVERSE (  q    ) 
 

Value:

((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
     (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))

#define UPDATE (  check,
buf,
len    )     adler32(check, buf, len)
 


Function Documentation

int ZEXPORT inflateReset (  strm    ) 
 

local unsigned syncsearch OF (  (unsigned FAR *have, unsigned char FAR *buf, unsigned len)    ) 
 

local int updatewindow OF (  (z_streamp strm, unsigned out)    ) 
 

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


Variable Documentation

unsigned char FAR* buf
 

const Bytef* dictionary
 

uInt dictLength
 

int flush
 

unsigned len
 

unsigned out
 

z_streamp source
 

int stream_size
 

const char* version
 

int windowBits
 


Generated on Wed Nov 3 12:59:13 2004 for Lemur Toolkit by doxygen1.2.18