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]
Macros | Functions
gzlib.c File Reference
#include "gzguts.h"

Go to the source code of this file.

Macros

#define LSEEK   lseek
 

Functions

local void gz_reset OF ((gz_statep))
 
local gzFile gz_open OF ((const void *, int, const char *))
 
local void gz_reset (gz_statep state)
 
local gzFile gz_open (void *path, int fd, const char *mode) const
 
gzFile ZEXPORT gzopen (char *path, const char *mode) const
 
gzFile ZEXPORT gzopen64 (char *path, const char *mode) const
 
gzFile ZEXPORT gzdopen (int fd, const char *mode)
 
int ZEXPORT gzbuffer (gzFile file, unsigned size)
 
int ZEXPORT gzrewind (gzFile file)
 
z_off64_t ZEXPORT gzseek64 (gzFile file, z_off64_t offset, int whence)
 
z_off_t ZEXPORT gzseek (gzFile file, z_off_t offset, int whence)
 
z_off64_t ZEXPORT gztell64 (gzFile file)
 
z_off_t ZEXPORT gztell (gzFile file)
 
z_off64_t ZEXPORT gzoffset64 (gzFile file)
 
z_off_t ZEXPORT gzoffset (gzFile file)
 
int ZEXPORT gzeof (gzFile file)
 
const char *ZEXPORT gzerror (gzFile file, int *errnum)
 
void ZEXPORT gzclearerr (gzFile file)
 
void ZLIB_INTERNAL gz_error (gz_statep state, int err, const char *msg)
 
unsigned ZLIB_INTERNAL gz_intmax ()
 

Macro Definition Documentation

◆ LSEEK

#define LSEEK   lseek

Definition at line 14 of file gzlib.c.

Referenced by gz_open(), gzoffset64(), gzrewind(), and gzseek64().

Function Documentation

◆ gz_error()

void ZLIB_INTERNAL gz_error ( gz_statep  state,
int  err,
const char *  msg 
)

◆ gz_intmax()

unsigned ZLIB_INTERNAL gz_intmax ( )

Definition at line 622 of file gzlib.c.

◆ gz_open()

local gzFile gz_open ( void path,
int  fd,
const char *  mode 
) const

◆ gz_reset()

local void gz_reset ( gz_statep  state)

Definition at line 75 of file gzlib.c.

References gz_error(), GZ_READ, LOOK, NULL, and Z_OK.

Referenced by gz_open(), and gzrewind().

◆ gzbuffer()

int ZEXPORT gzbuffer ( gzFile  file,
unsigned  size 
)

Definition at line 314 of file gzlib.c.

References GZ_READ, GZ_WRITE, and NULL.

◆ gzclearerr()

void ZEXPORT gzclearerr ( gzFile  file)

Definition at line 549 of file gzlib.c.

References gz_error(), GZ_READ, GZ_WRITE, NULL, and Z_OK.

◆ gzdopen()

gzFile ZEXPORT gzdopen ( int  fd,
const char *  mode 
)

Definition at line 284 of file gzlib.c.

References free(), gz_open(), malloc(), NULL, and ZEXPORT.

Referenced by gzfilebuf::attach(), main(), izstream::open(), and ozstream::open().

◆ gzeof()

int ZEXPORT gzeof ( gzFile  file)

Definition at line 511 of file gzlib.c.

References GZ_READ, GZ_WRITE, and NULL.

◆ gzerror()

const char* ZEXPORT gzerror ( gzFile  file,
int errnum 
)

Definition at line 528 of file gzlib.c.

References GZ_READ, GZ_WRITE, NULL, and Z_MEM_ERROR.

Referenced by izstream::error(), ozstream::error(), gz_compress(), gz_uncompress(), tar(), and test_gzio().

◆ gzoffset()

z_off_t ZEXPORT gzoffset ( gzFile  file)

Definition at line 501 of file gzlib.c.

References gzoffset64(), z_off64_t, and z_off_t.

◆ gzoffset64()

z_off64_t ZEXPORT gzoffset64 ( gzFile  file)

Definition at line 478 of file gzlib.c.

References GZ_READ, GZ_WRITE, LSEEK, NULL, SEEK_CUR, and z_off64_t.

Referenced by gzoffset().

◆ gzopen()

gzFile ZEXPORT gzopen ( char *  path,
const char *  mode 
) const

◆ gzopen64()

gzFile ZEXPORT gzopen64 ( char *  path,
const char *  mode 
) const

Definition at line 276 of file gzlib.c.

References gz_open().

◆ gzrewind()

int ZEXPORT gzrewind ( gzFile  file)

Definition at line 339 of file gzlib.c.

References GZ_READ, gz_reset(), LSEEK, NULL, SEEK_SET, Z_BUF_ERROR, and Z_OK.

Referenced by gzseek64().

◆ gzseek()

z_off_t ZEXPORT gzseek ( gzFile  file,
z_off_t  offset,
int  whence 
)

Definition at line 439 of file gzlib.c.

References gzseek64(), z_off64_t, and z_off_t.

Referenced by test_gzio().

◆ gzseek64()

z_off64_t ZEXPORT gzseek64 ( gzFile  file,
z_off64_t  offset,
int  whence 
)

Definition at line 362 of file gzlib.c.

References COPY, GT_OFF, gz_error(), GZ_READ, GZ_WRITE, gzrewind(), LSEEK, NULL, SEEK_CUR, SEEK_SET, Z_BUF_ERROR, z_off64_t, and Z_OK.

Referenced by gzseek().

◆ gztell()

z_off_t ZEXPORT gztell ( gzFile  file)

Definition at line 468 of file gzlib.c.

References gztell64(), z_off64_t, and z_off_t.

Referenced by test_gzio().

◆ gztell64()

z_off64_t ZEXPORT gztell64 ( gzFile  file)

Definition at line 451 of file gzlib.c.

References GZ_READ, GZ_WRITE, NULL, and gzFile_s::pos.

Referenced by gztell().

◆ OF() [1/2]

◆ OF() [2/2]

local gzFile gz_open OF ( (const void *, int, const char *)  )