zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gzread.c File Reference
#include "gzguts.h"

Go to the source code of this file.

Macros

#define NEXT()
 

Functions

local int gz_avail (gz_statep state)
 
local int gz_decomp (gz_statep state)
 
local int gz_head (gz_statep state)
 
local int gz_load (gz_statep state, unsigned char *buf, unsigned len, unsigned *have)
 
local int gz_make (gz_statep state)
 
local int gz_next4 (gz_statep state, unsigned long *ret)
 
local int gz_skip (gz_statep state, z_off64_t len)
 
int ZEXPORT gzclose_r (gzFile file)
 
int ZEXPORT gzdirect (gzFile file)
 
int ZEXPORT gzgetc (gzFile file)
 
char *ZEXPORT gzgets (gzFile file, char *buf, int len)
 
int ZEXPORT gzread (gzFile file, voidp buf, unsigned len)
 
int ZEXPORT gzungetc (int c, gzFile file)
 
local int gz_load OF ((gz_statep, unsigned char *, unsigned, unsigned *))
 
local int gz_avail OF ((gz_statep))
 
local int gz_next4 OF ((gz_statep, unsigned long *))
 
local int gz_skip OF ((gz_statep, z_off64_t))
 

Macro Definition Documentation

#define NEXT ( )
Value:
((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \
(strm->avail_in == 0 ? -1 : \
(strm->avail_in--, *(strm->next_in)++)))
local int gz_avail(gz_statep state)
Definition: gzread.c:50

Definition at line 67 of file gzread.c.

Referenced by gz_head(), and gz_next4().

Function Documentation

local int gz_avail ( gz_statep  state)

Definition at line 50 of file gzread.c.

References gz_load(), and Z_OK.

Referenced by gz_decomp(), and gz_head().

local int gz_decomp ( gz_statep  state)
local int gz_head ( gz_statep  state)

Definition at line 104 of file gzread.c.

References COPY, crc32(), free, gz_avail(), gz_error(), GZIP, inflateInit2, inflateReset(), malloc, memcpy, NEXT, NULL, Z_DATA_ERROR, Z_MEM_ERROR, Z_NULL, and Z_OK.

Referenced by gz_make(), and gzdirect().

local int gz_load ( gz_statep  state,
unsigned char *  buf,
unsigned  len,
unsigned *  have 
)

Definition at line 21 of file gzread.c.

References gz_error(), ret, Z_ERRNO, and zstrerror.

Referenced by gz_avail(), gz_make(), and gzread().

local int gz_make ( gz_statep  state)

Definition at line 304 of file gzread.c.

References COPY, gz_decomp(), gz_head(), gz_load(), GZIP, and LOOK.

Referenced by gz_skip(), gzgets(), and gzread().

local int gz_next4 ( gz_statep  state,
unsigned long *  ret 
)

Definition at line 73 of file gzread.c.

References NEXT.

Referenced by gz_decomp().

local int gz_skip ( gz_statep  state,
z_off64_t  len 
)

Definition at line 330 of file gzread.c.

References GT_OFF, gz_make(), and z_off64_t.

Referenced by gzgets(), gzread(), and gzungetc().

int ZEXPORT gzclose_r ( gzFile  file)

Definition at line 627 of file gzread.c.

References free, gz_error(), GZ_READ, inflateEnd(), NULL, ret, Z_ERRNO, Z_OK, and Z_STREAM_ERROR.

Referenced by gzclose().

int ZEXPORT gzdirect ( gzFile  file)

Definition at line 603 of file gzread.c.

References gz_head(), GZ_READ, LOOK, and NULL.

int ZEXPORT gzgetc ( gzFile  file)

Definition at line 453 of file gzread.c.

References GZ_READ, gzread(), NULL, ret, and Z_OK.

char* ZEXPORT gzgets ( gzFile  file,
char *  buf,
int  len 
)

Definition at line 539 of file gzread.c.

References gz_make(), GZ_READ, gz_skip(), memcpy, NULL, str, and Z_OK.

int ZEXPORT gzread ( gzFile  file,
voidp  buf,
unsigned  len 
)

Definition at line 362 of file gzread.c.

References COPY, gz_decomp(), gz_error(), gz_load(), gz_make(), GZ_READ, gz_skip(), LOOK, memcpy, NULL, Z_BUF_ERROR, and Z_OK.

int ZEXPORT gzungetc ( int  c,
gzFile  file 
)

Definition at line 482 of file gzread.c.

References gz_error(), GZ_READ, gz_skip(), NULL, Z_BUF_ERROR, and Z_OK.

local int gz_load OF ( (gz_statep, unsigned char *, unsigned, unsigned *)  )
local int gz_next4 OF ( (gz_statep, unsigned long *)  )