pngcrush  1.8.13
About: Pngcrush is an optimizer for PNG (Portable Network Graphics) files.
  Fossies Dox: pngcrush-1.8.13.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

gzread.c File Reference
#include "gzguts.h"
Include dependency graph for gzread.c:

Go to the source code of this file.

Functions

static int gz_load ()
 
static int gz_avail ()
 
static int gz_look ()
 
static int gz_decomp ()
 
static int gz_fetch ()
 
static int gz_skip ()
 
static z_size_t gz_read ()
 
static int gz_load (gz_statep state, unsigned char *buf, unsigned len, unsigned *have)
 
static int gz_avail (gz_statep state)
 
static int gz_look (gz_statep state)
 
static int gz_decomp (gz_statep state)
 
static int gz_fetch (gz_statep state)
 
static int gz_skip (gz_statep state, long len)
 
static z_size_t gz_read (gz_statep state, voidp buf, z_size_t len)
 
int gzread (gzFile file, voidp buf, unsigned len)
 
z_size_t gzfread (voidp buf, z_size_t size, z_size_t nitems, gzFile file)
 
int gzgetc (gzFile file)
 
int gzgetc_ (gzFile file)
 
int gzungetc (int c, gzFile file)
 
char * gzgets (gzFile file, char *buf, int len)
 
int gzdirect (gzFile file)
 
int gzclose_r (gzFile file)
 

Function Documentation

◆ gz_avail() [1/2]

static int gz_avail ( )
static

Referenced by gz_decomp(), and gz_look().

◆ gz_avail() [2/2]

static int gz_avail ( gz_statep  state)
static

Definition at line 57 of file gzread.c.

References z_stream_s::avail_in, gz_load(), z_stream_s::next_in, Z_BUF_ERROR, and Z_OK.

◆ gz_decomp() [1/2]

static int gz_decomp ( )
static

Referenced by gz_fetch(), and gz_read().

◆ gz_decomp() [2/2]

◆ gz_fetch() [1/2]

static int gz_fetch ( )
static

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

◆ gz_fetch() [2/2]

static int gz_fetch ( gz_statep  state)
static

◆ gz_load() [1/2]

static int gz_load ( )
static

Referenced by gz_avail(), gz_fetch(), and gz_read().

◆ gz_load() [2/2]

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

Definition at line 22 of file gzread.c.

References gz_error(), gzFile_s::have, Z_ERRNO, and zstrerror.

◆ gz_look() [1/2]

static int gz_look ( )
static

Referenced by gz_fetch(), and gzdirect().

◆ gz_look() [2/2]

static int gz_look ( gz_statep  state)
static

◆ gz_read() [1/2]

static z_size_t gz_read ( )
static

Referenced by gzfread(), gzgetc(), and gzread().

◆ gz_read() [2/2]

static z_size_t gz_read ( gz_statep  state,
voidp  buf,
z_size_t  len 
)
static

Definition at line 295 of file gzread.c.

References COPY, gz_decomp(), gz_fetch(), gz_load(), gz_skip(), LOOK, and gz_state::seek.

◆ gz_skip() [1/2]

static int gz_skip ( )
static

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

◆ gz_skip() [2/2]

static int gz_skip ( gz_statep  state,
long  len 
)
static

Definition at line 260 of file gzread.c.

References GT_OFF, gz_fetch(), and z_off64_t.

◆ gzclose_r()

◆ gzdirect()

int gzdirect ( gzFile  file)

◆ gzfread()

z_size_t gzfread ( voidp  buf,
z_size_t  size,
z_size_t  nitems,
gzFile  file 
)

Definition at line 412 of file gzread.c.

References gz_state::err, gz_error(), gz_read(), GZ_READ, gz_state::mode, Z_BUF_ERROR, Z_OK, and Z_STREAM_ERROR.

◆ gzgetc()

int gzgetc ( gzFile  file)

◆ gzgetc_()

int gzgetc_ ( gzFile  file)

Definition at line 477 of file gzread.c.

References gzgetc().

◆ gzgets()

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

◆ gzread()

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

Definition at line 376 of file gzread.c.

References gz_state::err, gz_error(), gz_read(), GZ_READ, gz_state::mode, Z_BUF_ERROR, Z_OK, and Z_STREAM_ERROR.

◆ gzungetc()