GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
gzio.cpp File Reference
#include <stdio.h>
#include "zlib_symbian_ext.h"
#include "zutil.h"
+ Include dependency graph for gzio.cpp:

Data Structures

struct  internal_state
 
struct  gz_stream
 

Macros

#define Z_BUFSIZE   16384
 
#define Z_PRINTF_BUFSIZE   4096
 
#define ALLOC(size)   gf_malloc(size)
 
#define TRYFREE(p)   {if (p) gf_free(p);}
 
#define ASCII_FLAG   0x01 /* bit 0 set: file probably ascii text */
 
#define HEAD_CRC   0x02 /* bit 1 set: header CRC present */
 
#define EXTRA_FIELD   0x04 /* bit 2 set: extra field present */
 
#define ORIG_NAME   0x08 /* bit 3 set: original file name present */
 
#define COMMENT   0x10 /* bit 4 set: file comment present */
 
#define RESERVED   0xE0 /* bits 5..7: reserved */
 
#define GZ_EXPORT
 
#define zstrerror(errnum)   ""
 

Typedefs

typedef voidp gzFile
 

Functions

static void check_header OF ((gz_stream *s))
 
static gzFile gz_open (const char *path, const char *mode, int fd)
 
gzFile gzopen (const char *path, const char *mode)
 
gzFile gzdopen (int fd, const char *mode)
 
int gzsetparams (gzFile file, int level, int strategy)
 
static int get_byte (gz_stream *s)
 
static void check_header (gz_stream *s)
 
static int destroy (gz_stream *s)
 
int gzread (gzFile file, voidp buf, unsigned len)
 
int gzgetc (gzFile file)
 
int gzungetc (int c, gzFile file)
 
char * gzgets (gzFile file, char *buf, int len)
 
int gzwrite (gzFile file, void *const buf, unsigned len)
 
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 gzputc (gzFile file, int c)
 
int gzputs (gzFile file, const char *s)
 
static int do_flush (gzFile file, int flush)
 
int gzflush (gzFile file, int flush)
 
int gzrewind (gzFile file)
 
z_off_t gzseek (gzFile file, z_off_t offset, int whence)
 
z_off_t gztell (gzFile file)
 
int gzeof (gzFile file)
 
int gzdirect (gzFile file)
 
static void putLong (FILE *file, uLong x)
 
static uLong getLong (gz_stream *s)
 
int gzclose (gzFile file)
 
const char * gzerror (gzFile file, int *errnum)
 
void gzclearerr (gzFile file)
 

Variables

static int const gz_magic [2] = {0x1f, 0x8b}
 
const char *const z_errmsg [10]
 

Data Structure Documentation

struct internal_state
+ Collaboration diagram for internal_state:
Data Fields
int dummy
struct gz_stream
+ Collaboration diagram for gz_stream:
Data Fields
z_stream stream
int z_err
int z_eof
FILE * file
Byte * inbuf
Byte * outbuf
uLong crc
char * msg
char * path
int transparent
char mode
z_off_t start
z_off_t in
z_off_t out
int back
int last

Macro Definition Documentation

#define Z_BUFSIZE   16384
#define Z_PRINTF_BUFSIZE   4096
#define ALLOC (   size)    gf_malloc(size)
#define TRYFREE (   p)    {if (p) gf_free(p);}
#define ASCII_FLAG   0x01 /* bit 0 set: file probably ascii text */
#define HEAD_CRC   0x02 /* bit 1 set: header CRC present */
#define EXTRA_FIELD   0x04 /* bit 2 set: extra field present */
#define ORIG_NAME   0x08 /* bit 3 set: original file name present */
#define COMMENT   0x10 /* bit 4 set: file comment present */
#define RESERVED   0xE0 /* bits 5..7: reserved */
#define GZ_EXPORT
#define zstrerror (   errnum)    ""

Typedef Documentation

typedef voidp gzFile

Function Documentation

static uLong getLong OF ( (gz_stream *s)  )
static
static gzFile gz_open ( const char *  path,
const char *  mode,
int  fd 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

gzFile gzdopen ( int  fd,
const char *  mode 
)

+ Here is the call graph for this function:

int gzsetparams ( gzFile  file,
int  level,
int  strategy 
)
static int get_byte ( gz_stream s)
static

+ Here is the caller graph for this function:

static void check_header ( gz_stream s)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int destroy ( gz_stream s)
static

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gzgetc ( gzFile  file)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gzungetc ( int  c,
gzFile  file 
)
char* gzgets ( gzFile  file,
char *  buf,
int  len 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gzwrite ( gzFile  file,
void *const  buf,
unsigned  len 
)

+ Here is the caller graph for this function:

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 
)

+ Here is the call graph for this function:

int gzputc ( gzFile  file,
int  c 
)

+ Here is the call graph for this function:

int gzputs ( gzFile  file,
const char *  s 
)

+ Here is the call graph for this function:

static int do_flush ( gzFile  file,
int  flush 
)
static

+ Here is the caller graph for this function:

int gzflush ( gzFile  file,
int  flush 
)

+ Here is the call graph for this function:

int gzrewind ( gzFile  file)

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

z_off_t gztell ( gzFile  file)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gzeof ( gzFile  file)

+ Here is the caller graph for this function:

int gzdirect ( gzFile  file)
static void putLong ( FILE *  file,
uLong  x 
)
static

+ Here is the caller graph for this function:

static uLong getLong ( gz_stream s)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gzclose ( gzFile  file)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* gzerror ( gzFile  file,
int *  errnum 
)
void gzclearerr ( gzFile  file)

Variable Documentation

int const gz_magic[2] = {0x1f, 0x8b}
static
const char* const z_errmsg[10]
Initial value:
= {
"need dictionary",
"stream end",
"",
"file error",
"stream error",
"data error",
"insufficient memory",
"buffer error",
"incompatible version",
""}