TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Functions
gzwrite.c File Reference
#include "gzguts.h"

Go to the source code of this file.

Functions

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)
 
local z_size_t gz_write (gz_statep state, voidpc buf, z_size_t len)
 
int ZEXPORT gzwrite (gzFile file, voidpc buf, unsigned len)
 
z_size_t ZEXPORT gzfwrite (voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
 
int ZEXPORT gzputc (gzFile file, int c)
 
int ZEXPORT gzputs (gzFile file, const char *s)
 
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

local int gz_comp ( gz_statep  state,
int  flush 
)
local int gz_init ( gz_statep  state)

Definition at line 11 of file gzwrite.c.

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

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

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

Definition at line 173 of file gzwrite.c.

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

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

local int gz_zero ( gz_statep  state,
z_off64_t  len 
)

Definition at line 143 of file gzwrite.c.

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

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

int ZEXPORT gzclose_w ( gzFile  file)

Definition at line 595 of file gzwrite.c.

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

Referenced by gzclose().

int ZEXPORT gzflush ( gzFile  file,
int  flush 
)

Definition at line 528 of file gzwrite.c.

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

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

Definition at line 261 of file gzwrite.c.

References gz_error(), GZ_WRITE, gz_write(), Z_OK, and Z_STREAM_ERROR.

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 443 of file gzwrite.c.

References gz_comp(), gz_init(), GZ_WRITE, gz_zero(), gzFile_s::next, Z_NO_FLUSH, Z_OK, and Z_STREAM_ERROR.

int ZEXPORT gzputc ( gzFile  file,
int  c 
)

Definition at line 287 of file gzwrite.c.

References GZ_WRITE, gz_write(), gz_zero(), gzFile_s::have, gzFile_s::pos, and Z_OK.

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

Definition at line 332 of file gzwrite.c.

References gz_error(), GZ_WRITE, gz_write(), int(), Z_OK, and Z_STREAM_ERROR.

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

Definition at line 557 of file gzwrite.c.

References deflateParams(), gz_comp(), GZ_WRITE, gz_zero(), Z_BLOCK, Z_OK, and Z_STREAM_ERROR.

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

Definition at line 237 of file gzwrite.c.

References gz_error(), GZ_WRITE, gz_write(), Z_DATA_ERROR, and Z_OK.