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
gzwrite.c File Reference
#include "gzguts.h"

Go to the source code of this file.

Functions

local int gz_init OF ((gz_statep))
 
local int gz_comp OF ((gz_statep, int))
 
local int gz_zero OF ((gz_statep, z_off64_t))
 
local int gz_init (gz_statep state)
 
local int gz_comp (gz_statep state, int flush)
 
local int gz_zero (gz_statep state, z_off64_t len)
 
int ZEXPORT gzwrite (gzFile file, voidpc buf, unsigned len)
 
int ZEXPORT gzputc (gzFile file, int c)
 
int ZEXPORT gzputs (gzFile file, const char *str)
 
int ZEXPORTVA gzprintf (gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20)
 
int ZEXPORT gzflush (gzFile file, int flush)
 
int ZEXPORT gzsetparams (gzFile file, int level, int strategy)
 
int ZEXPORT gzclose_w (gzFile file)
 

Function Documentation

◆ gz_comp()

local int gz_comp ( gz_statep  state,
int  flush 
)

◆ gz_init()

local int gz_init ( gz_statep  state)

Definition at line 15 of file gzwrite.c.

References DEF_MEM_LEVEL, deflateInit2, free(), gz_error(), malloc(), MAX_WBITS, NULL, Z_DEFLATED, Z_MEM_ERROR, Z_NULL, and Z_OK.

Referenced by gz_comp(), gzprintf(), gzputs(), and gzwrite().

◆ gz_zero()

local int gz_zero ( gz_statep  state,
z_off64_t  len 
)

Definition at line 133 of file gzwrite.c.

References GT_OFF, gz_comp(), Z_NO_FLUSH, and z_off64_t.

Referenced by gzclose_w(), gzflush(), gzprintf(), gzputc(), gzputs(), gzsetparams(), and gzwrite().

◆ gzclose_w()

int ZEXPORT gzclose_w ( gzFile  file)

Definition at line 539 of file gzwrite.c.

References close(), deflateEnd(), free(), gz_comp(), gz_error(), GZ_WRITE, gz_zero(), if(), NULL, void(), Z_ERRNO, Z_FINISH, Z_OK, and Z_STREAM_ERROR.

Referenced by gzclose().

◆ gzflush()

int ZEXPORT gzflush ( gzFile  file,
int  flush 
)

Definition at line 465 of file gzwrite.c.

References gz_comp(), GZ_WRITE, gz_zero(), NULL, Z_FINISH, Z_OK, and Z_STREAM_ERROR.

Referenced by ozstream::flush().

◆ gzprintf()

int ZEXPORTVA gzprintf ( gzFile  file,
const char *  format,
int  a1,
int  a2,
int  a3,
int  a4,
int  a5,
int  a6,
int  a7,
int  a8,
int  a9,
int  a10,
int  a11,
int  a12,
int  a13,
int  a14,
int  a15,
int  a16,
int  a17,
int  a18,
int  a19,
int  a20 
)

Definition at line 386 of file gzwrite.c.

References gz_comp(), gz_init(), GZ_WRITE, gz_zero(), int, NULL, Z_NO_FLUSH, and Z_OK.

Referenced by gzputs(), and test_gzio().

◆ gzputc()

int ZEXPORT gzputc ( gzFile  file,
int  c 
)

Definition at line 245 of file gzwrite.c.

References GZ_WRITE, gz_zero(), gzwrite(), gzFile_s::have, NULL, and Z_OK.

Referenced by test_gzio().

◆ gzputs()

int ZEXPORT gzputs ( gzFile  file,
const char *  str 
)

Definition at line 293 of file gzwrite.c.

References gz_comp(), gz_init(), GZ_WRITE, gz_zero(), gzprintf(), gzwrite(), int, NULL, void(), Z_NO_FLUSH, Z_OK, and ZEXPORTVA.

Referenced by test_gzio().

◆ gzsetparams()

int ZEXPORT gzsetparams ( gzFile  file,
int  level,
int  strategy 
)

◆ gzwrite()

int ZEXPORT gzwrite ( gzFile  file,
voidpc  buf,
unsigned  len 
)

◆ OF() [1/3]

local int gz_init OF ( (gz_statep )

◆ OF() [2/3]

local int gz_comp OF ( (gz_statep, int )

◆ OF() [3/3]