NCBI C++ ToolKit
Functions
gzread.c File Reference
#include "gzguts.h"
+ Include dependency graph for gzread.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Go to the SVN repository for this file.

Functions

static int gz_load OF ((gz_statep, unsigned char *, unsigned, unsigned *))
 
static int gz_avail OF ((gz_statep))
 
static int gz_skip OF ((gz_statep, z_off64_t))
 
static z_size_t gz_read OF ((gz_statep, voidp, z_size_t))
 
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, z_off64_t len)
 
static z_size_t gz_read (gz_statep state, voidp buf, z_size_t len)
 
int ZEXPORT gzread (gzFile file, voidp buf, unsigned len)
 
z_size_t ZEXPORT gzfread (voidp buf, z_size_t size, z_size_t nitems, gzFile file)
 
int ZEXPORT gzgetc (gzFile file)
 
int ZEXPORT gzgetc_ (gzFile file)
 
int ZEXPORT gzungetc (int c, gzFile file)
 
char *ZEXPORT gzgets (gzFile file, char *buf, int len)
 
int ZEXPORT gzdirect (gzFile file)
 
int ZEXPORT gzclose_r (gzFile file)
 

Function Documentation

◆ gz_avail()

static int gz_avail ( gz_statep  state)
static

Definition at line 56 of file gzread.c.

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

Referenced by gz_decomp(), and gz_look().

◆ gz_decomp()

static int gz_decomp ( gz_statep  state)
static

◆ gz_fetch()

static int gz_fetch ( gz_statep  state)
static

◆ gz_load()

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

Definition at line 21 of file gzread.c.

References buf, gz_error(), len, max(), Z_ERRNO, and zstrerror.

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

◆ gz_look()

static int gz_look ( gz_statep  state)
static

◆ gz_read()

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

Definition at line 294 of file gzread.c.

References buf, COPY, gz_decomp(), gz_fetch(), gz_load(), gz_skip(), len, LOOK, and n.

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

◆ gz_skip()

static int gz_skip ( gz_statep  state,
z_off64_t  len 
)
static

Definition at line 259 of file gzread.c.

References GT_OFF, gz_fetch(), len, n, and z_off64_t.

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

◆ gzclose_r()

int ZEXPORT gzclose_r ( gzFile  file)

Definition at line 625 of file gzread.c.

References close(), file, gz_error(), GZ_READ, inflateEnd, NULL, Z_BUF_ERROR, Z_ERRNO, Z_OK, and Z_STREAM_ERROR.

◆ gzdirect()

int ZEXPORT gzdirect ( gzFile  file)

Definition at line 605 of file gzread.c.

References file, gz_look(), GZ_READ, LOOK, and NULL.

◆ gzfread()

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

◆ gzgetc()

int ZEXPORT gzgetc ( gzFile  file)

Definition at line 447 of file gzread.c.

References buf, file, GZ_READ, gz_read(), NULL, Z_BUF_ERROR, and Z_OK.

Referenced by gzgetc_().

◆ gzgetc_()

int ZEXPORT gzgetc_ ( gzFile  file)

Definition at line 474 of file gzread.c.

References file, and gzgetc().

◆ gzgets()

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

Definition at line 541 of file gzread.c.

References buf, file, gz_fetch(), GZ_READ, gz_skip(), len, n, NULL, str(), Z_BUF_ERROR, and Z_OK.

◆ gzread()

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

Definition at line 375 of file gzread.c.

References buf, file, gz_error(), GZ_READ, gz_read(), len, NULL, Z_BUF_ERROR, Z_OK, and Z_STREAM_ERROR.

◆ gzungetc()

int ZEXPORT gzungetc ( int  c,
gzFile  file 
)

Definition at line 481 of file gzread.c.

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

◆ OF() [1/4]

static int gz_avail OF ( (gz_statep )
static

◆ OF() [2/4]

static int gz_load OF ( (gz_statep, unsigned char *, unsigned, unsigned *)  )
static

◆ OF() [3/4]

◆ OF() [4/4]

static int gz_skip OF ( (gz_statep, z_off64_t )
static
Modified on Mon Nov 27 00:58:22 2023 by modify_doxy.py rev. 669887
Modified on Tue Nov 28 02:18:27 2023 by modify_doxy.py rev. 669887
Modified on Wed Nov 29 02:13:31 2023 by modify_doxy.py rev. 669887
Modified on Thu Nov 30 04:52:28 2023 by modify_doxy.py rev. 669887
Modified on Fri Dec 01 04:43:52 2023 by modify_doxy.py rev. 669887
Modified on Sat Dec 02 09:19:51 2023 by modify_doxy.py rev. 669887