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

infback.c File Reference

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

Defines

#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_ (strm, windowBits, window, version, stream_size) z_stream FAR *strm

Variables

int windowBits
unsigned char FAR * window
const char * version
int stream_size
in_func in
void FAR * in_desc
out_func out
void FAR * out_desc

Define Documentation

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

 
#define BYTEBITS  
 

Value:

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

#define DROPBITS  
 

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  
 

Value:

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

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

Value:

do { \
        PULL(); \
        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 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)


Function Documentation

int ZEXPORT inflateBackInit_ strm   ,
windowBits   ,
window   ,
version   ,
stream_size   
 

local void fixedtables OF (struct inflate_state FAR *state)   
 


Variable Documentation

in_func in
 

void FAR* in_desc
 

out_func out
 

void FAR* out_desc
 

int stream_size
 

const char* version
 

unsigned char FAR* window
 

int windowBits
 


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