Back to index

plt-scheme  4.2.1
Classes | Functions | Variables
zutil.c File Reference
#include "zutil.h"

Go to the source code of this file.


struct  internal_state


void exit OF ((int))
const char *ZEXPORT zlibVersion ()
const char *ZEXPORT zError (int err)
void zmemcpy (Bytef *dest, const Bytef *source, uInt len)
int zmemcmp (Bytef *s1, const Bytef *s2, uInt len) const
void zmemzero (Bytef *dest, uInt len)
voidp calloc OF ((uInt items, uInt size))
void free OF ((voidpf ptr))
voidpf zcalloc (voidpf opaque, unsigned items, unsigned size)
void zcfree (voidpf opaque, voidpf ptr)


const char * z_errmsg [10]

Class Documentation

struct internal_state

Definition at line 82 of file deflate.h.

Collaboration diagram for internal_state:
Class Members
ush bi_buf
int bi_valid
ush bl_count
long block_start
inflate_blocks_statef * blocks
ushf * d_buf
Byte data_type
uch depth
int dummy
uInt good_match
uInt hash_bits
uInt hash_mask
uInt hash_shift
uInt hash_size
Posf * head
int heap
int heap_len
int heap_max
uInt ins_h
uchf * l_buf
int last_eob_len
int last_flush
uInt last_lit
int level
uInt lit_bufsize
uInt lookahead
int match_available
uInt match_length
uInt match_start
uInt matches
uInt max_chain_length
uInt max_lazy_match
Byte method
inflate_mode mode
int nice_match
int noheader
int nowrap
ulg opt_len
int pending
Bytef * pending_buf
ulg pending_buf_size
Bytef * pending_out
Posf * prev
uInt prev_length
IPos prev_match
ulg static_len
int status
int strategy
z_streamp strm
uInt strstart
union internal_state sub
union internal_state sub
uInt w_bits
uInt w_mask
uInt w_size
uInt wbits
Bytef * window
ulg window_size

Function Documentation

void exit OF ( (int )
void free OF ( (voidpf ptr )
voidpf zcalloc ( voidpf  opaque,
unsigned  items,
unsigned  size 

Definition at line 208 of file zutil.c.

    if (opaque) items += size - size; /* make compiler happy */
    return (voidpf)calloc(items, size);

Here is the call graph for this function:

Here is the caller graph for this function:

void zcfree ( voidpf  opaque,
voidpf  ptr 

Definition at line 217 of file zutil.c.

    if (opaque) return; /* make compiler happy */

Here is the caller graph for this function:

const char* ZEXPORT zError ( int  err)

Definition at line 52 of file zutil.c.

    return ERR_MSG(err);

Definition at line 29 of file zutil.c.

    return ZLIB_VERSION;

Here is the caller graph for this function:

int zmemcmp ( Bytef s1,
const Bytef s2,
uInt  len 
) const

Definition at line 72 of file zutil.c.

    uInt j;

    for (j = 0; j < len; j++) {
        if (s1[j] != s2[j]) return 2*(s1[j] > s2[j])-1;
    return 0;
void zmemcpy ( Bytef dest,
const Bytef source,
uInt  len 

Definition at line 61 of file zutil.c.

    if (len == 0) return;
    do {
        *dest++ = *source++; /* ??? to be unrolled */
    } while (--len != 0);

Here is the caller graph for this function:

void zmemzero ( Bytef dest,
uInt  len 

Definition at line 85 of file zutil.c.

    if (len == 0) return;
    do {
        *dest++ = 0;  /* ??? to be unrolled */
    } while (--len != 0);

Here is the caller graph for this function:

Variable Documentation

const char* z_errmsg[10]
Initial value:
"need dictionary",     
"stream end",          
"file error",          
"stream error",        
"data error",          
"insufficient memory", 
"buffer error",        
"incompatible version",

Definition at line 16 of file zutil.c.