Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Functions
gzread.c File Reference
#include "gzguts.h"

Go to the source code of this file.

Functions

local int gz_load OF ((gz_statep, unsigned char *, unsigned, unsigned *))
 
local int gz_avail OF ((gz_statep))
 
local int gz_skip OF ((gz_statep, z_off64_t))
 
local int gz_load (gz_statep state, unsigned char *buf, unsigned len, unsigned *have)
 
local int gz_avail (gz_statep state)
 
local int gz_look (gz_statep state)
 
local int gz_decomp (gz_statep state)
 
local int gz_fetch (gz_statep state)
 
local int gz_skip (gz_statep state, z_off64_t len)
 
int ZEXPORT gzread (gzFile file, voidp buf, unsigned len)
 
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()

local int gz_avail ( gz_statep  state)

Definition at line 51 of file gzread.c.

References gz_load(), Z_BUF_ERROR, and Z_OK.

Referenced by gz_decomp(), and gz_look().

◆ gz_decomp()

local int gz_decomp ( gz_statep  state)

◆ gz_fetch()

local int gz_fetch ( gz_statep  state)

Definition at line 226 of file gzread.c.

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

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

◆ gz_load()

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

Definition at line 20 of file gzread.c.

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

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

◆ gz_look()

local int gz_look ( gz_statep  state)

Definition at line 86 of file gzread.c.

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

Referenced by gz_fetch(), and gzdirect().

◆ gz_skip()

local int gz_skip ( gz_statep  state,
z_off64_t  len 
)

Definition at line 256 of file gzread.c.

References GT_OFF, gz_fetch(), and z_off64_t.

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

◆ gzclose_r()

int ZEXPORT gzclose_r ( gzFile  file)

Definition at line 567 of file gzread.c.

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

Referenced by gzclose().

◆ gzdirect()

int ZEXPORT gzdirect ( gzFile  file)

Definition at line 547 of file gzread.c.

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

◆ gzgetc()

int ZEXPORT gzgetc ( gzFile  file)

Definition at line 387 of file gzread.c.

References GZ_READ, gzread(), gzFile_s::have, NULL, Z_BUF_ERROR, and Z_OK.

Referenced by gzgetc_(), and test_gzio().

◆ gzgetc_()

int ZEXPORT gzgetc_ ( gzFile  file)

Definition at line 416 of file gzread.c.

References gzgetc().

◆ gzgets()

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

Definition at line 483 of file gzread.c.

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

Referenced by test_gzio().

◆ gzread()

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

◆ gzungetc()

int ZEXPORT gzungetc ( int  c,
gzFile  file 
)

Definition at line 423 of file gzread.c.

References gz_error(), GZ_READ, gz_skip(), gzFile_s::have, NULL, Z_BUF_ERROR, Z_DATA_ERROR, and Z_OK.

Referenced by test_gzio().

◆ OF() [1/3]

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

◆ OF() [2/3]

◆ OF() [3/3]