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)  

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

Go to the source code of this file.

Functions

static int gz_init ()
 
static int gz_comp ()
 
static int gz_zero ()
 
static z_size_t gz_write ()
 
static int gz_init (gz_statep state)
 
static int gz_comp (gz_statep state, int flush)
 
static int gz_zero (gz_statep state, long len)
 
static z_size_t gz_write (gz_statep state, voidpc buf, z_size_t len)
 
int gzwrite (gzFile file, voidpc buf, unsigned len)
 
z_size_t gzfwrite (voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
 
int gzputc (gzFile file, int c)
 
int gzputs (gzFile file, const char *str)
 
int 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 gzflush (gzFile file, int flush)
 
int gzsetparams (gzFile file, int level, int strategy)
 
int gzclose_w (gzFile file)
 

Function Documentation

◆ gz_comp() [1/2]

static int gz_comp ( )
static

◆ gz_comp() [2/2]

◆ gz_init() [1/2]

static int gz_init ( )
static

Referenced by gz_comp(), gz_write(), and gzprintf().

◆ gz_init() [2/2]

◆ gz_write() [1/2]

static z_size_t gz_write ( )
static

Referenced by gzfwrite(), gzputc(), gzputs(), and gzwrite().

◆ gz_write() [2/2]

static z_size_t gz_write ( gz_statep  state,
voidpc  buf,
z_size_t  len 
)
static

Definition at line 179 of file gzwrite.c.

References gz_comp(), gz_init(), gz_zero(), gzFile_s::have, gz_state::seek, z_const, and Z_NO_FLUSH.

◆ gz_zero() [1/2]

static int gz_zero ( )
static

◆ gz_zero() [2/2]

static int gz_zero ( gz_statep  state,
long  len 
)
static

Definition at line 146 of file gzwrite.c.

References z_stream_s::avail_in, GT_OFF, gz_comp(), z_stream_s::next_in, Z_NO_FLUSH, and z_off64_t.

◆ gzclose_w()

◆ gzflush()

int gzflush ( gzFile  file,
int  flush 
)

◆ gzfwrite()

z_size_t gzfwrite ( voidpc  buf,
z_size_t  size,
z_size_t  nitems,
gzFile  file 
)

Definition at line 275 of file gzwrite.c.

References gz_state::err, gz_error(), gz_write(), GZ_WRITE, gz_state::mode, Z_OK, and Z_STREAM_ERROR.

◆ gzprintf()

int 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 
)

◆ gzputc()

◆ gzputs()

int gzputs ( gzFile  file,
const char *  str 
)

Definition at line 353 of file gzwrite.c.

References gz_state::err, gz_write(), GZ_WRITE, gz_state::mode, and Z_OK.

◆ gzsetparams()

◆ gzwrite()

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

Definition at line 247 of file gzwrite.c.

References gz_state::err, gz_error(), gz_write(), GZ_WRITE, gz_state::mode, Z_DATA_ERROR, and Z_OK.