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

Go to the source code of this file.

Functions

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)
 
local z_size_t gz_read (gz_statep state, voidp buf, z_size_t len)
 
int ZEXPORT gzread (gzFile file, voidp buf, unsigned len)
 
z_size_t ZEXPORT gzfread (voidp buf, z_size_t size, z_size_t nitems, gzFile file)
 
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

local int gz_avail ( gz_statep  state)

Definition at line 43 of file gzread.c.

References gz_load(), Z_BUF_ERROR, and Z_OK.

Referenced by gz_decomp(), and gz_look().

local int gz_decomp ( gz_statep  state)
local int gz_fetch ( gz_statep  state)

Definition at line 208 of file gzread.c.

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

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

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

Definition at line 12 of file gzread.c.

References gz_error(), gzFile_s::have, TTK::max(), Z_ERRNO, and zstrerror.

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

local int gz_look ( gz_statep  state)

Definition at line 76 of file gzread.c.

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

Referenced by gz_fetch(), gzdirect(), and gzungetc().

local z_size_t gz_read ( gz_statep  state,
voidp  buf,
z_size_t  len 
)

Definition at line 268 of file gzread.c.

References COPY, gz_decomp(), gz_fetch(), gz_load(), gz_skip(), and LOOK.

Referenced by gzfread(), gzgetc(), and gzread().

local int gz_skip ( gz_statep  state,
z_off64_t  len 
)

Definition at line 236 of file gzread.c.

References GT_OFF, gz_fetch(), and z_off64_t.

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

int ZEXPORT gzclose_r ( gzFile  file)

Definition at line 577 of file gzread.c.

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

Referenced by gzclose().

int ZEXPORT gzdirect ( gzFile  file)

Definition at line 559 of file gzread.c.

References gz_look(), GZ_READ, and LOOK.

z_size_t ZEXPORT gzfread ( voidp  buf,
z_size_t  size,
z_size_t  nitems,
gzFile  file 
)

Definition at line 377 of file gzread.c.

References gz_error(), GZ_READ, gz_read(), Z_BUF_ERROR, Z_OK, and Z_STREAM_ERROR.

int ZEXPORT gzgetc ( gzFile  file)

Definition at line 408 of file gzread.c.

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

Referenced by gzgetc_().

int ZEXPORT gzgetc_ ( gzFile  file)

Definition at line 433 of file gzread.c.

References gzgetc().

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

Definition at line 499 of file gzread.c.

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

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

Definition at line 345 of file gzread.c.

References gz_error(), GZ_READ, gz_read(), Z_BUF_ERROR, Z_OK, and Z_STREAM_ERROR.

int ZEXPORT gzungetc ( int  c,
gzFile  file 
)

Definition at line 438 of file gzread.c.

References gz_error(), gz_look(), GZ_READ, gz_skip(), LOOK, Z_BUF_ERROR, Z_DATA_ERROR, and Z_OK.