#include <stdio.h>
#include "zutil.h"
#include <stdarg.h>
Classes | |
struct | internal_state |
struct | gz_stream |
Defines | |
#define | Z_BUFSIZE 16384 |
#define | Z_PRINTF_BUFSIZE 4096 |
#define | ALLOC(size) malloc(size) |
#define | TRYFREE(p) {if (p) free(p);} |
#define | ASCII_FLAG 0x01 |
#define | HEAD_CRC 0x02 |
#define | EXTRA_FIELD 0x04 |
#define | ORIG_NAME 0x08 |
#define | COMMENT 0x10 |
#define | RESERVED 0xE0 |
#define | zstrerror(errnum) strerror(errnum) |
Typedefs | |
typedef struct gz_stream | gz_stream |
Functions | |
local gzFile gz_open | OF ((const char *path, const char *mode, intfd)) |
local int do_flush | OF ((gzFile file, int flush)) |
local int get_byte | OF ((gz_stream *s)) |
local void putLong | OF ((FILE *file, uLong x)) |
local gzFile | gz_open (char *path, const char *mode, int fd) const |
gzFile ZEXPORT | gzopen (char *path, const char *mode) const |
gzFile ZEXPORT | gzdopen (int fd, const char *mode) |
int ZEXPORT | gzsetparams (gzFile file, int level, int strategy) |
local int | get_byte (gz_stream *s) |
local void | check_header (gz_stream *s) |
local int | destroy (gz_stream *s) |
int ZEXPORT | gzread (gzFile file, voidp buf, unsigned len) |
int ZEXPORT | gzgetc (gzFile file) |
int ZEXPORT | gzungetc (int c, gzFile file) |
char *ZEXPORT | gzgets (gzFile file, char *buf, int len) |
int ZEXPORT | gzwrite (gzFile file, voidpc buf, unsigned len) |
int ZEXPORTVA | gzprintf (gzFile file, const char *format,...) |
int ZEXPORT | gzputc (gzFile file, int c) |
int ZEXPORT | gzputs (gzFile file, const char *s) |
local int | do_flush (gzFile file, int flush) |
int ZEXPORT | gzflush (gzFile file, int flush) |
z_off_t ZEXPORT | gzseek (gzFile file, z_off_t offset, int whence) |
int ZEXPORT | gzrewind (gzFile file) |
z_off_t ZEXPORT | gztell (gzFile file) |
int ZEXPORT | gzeof (gzFile file) |
int ZEXPORT | gzdirect (gzFile file) |
local void | putLong (FILE *file, uLong x) |
local uLong | getLong (gz_stream *s) |
int ZEXPORT | gzclose (gzFile file) |
const char *ZEXPORT | gzerror (gzFile file, int *errnum) |
void ZEXPORT | gzclearerr (gzFile file) |
#define ASCII_FLAG 0x01 |
#define COMMENT 0x10 |
#define EXTRA_FIELD 0x04 |
#define HEAD_CRC 0x02 |
#define ORIG_NAME 0x08 |
#define RESERVED 0xE0 |
#define TRYFREE | ( | p | ) | {if (p) free(p);} |
#define Z_BUFSIZE 16384 |
#define Z_PRINTF_BUFSIZE 4096 |
#define zstrerror | ( | errnum | ) | strerror(errnum) |
local void check_header | ( | gz_stream * | s | ) |
local int destroy | ( | gz_stream * | s | ) |
local int do_flush | ( | gzFile | file, | |
int | flush | |||
) |
local int get_byte | ( | gz_stream * | s | ) |
local gzFile gz_open | ( | char * | path, | |
const char * | mode, | |||
int | fd | |||
) | const |
void ZEXPORT gzclearerr | ( | gzFile | file | ) |
int ZEXPORT gzclose | ( | gzFile | file | ) |
int ZEXPORT gzdirect | ( | gzFile | file | ) |
gzFile ZEXPORT gzdopen | ( | int | fd, | |
const char * | mode | |||
) |
int ZEXPORT gzeof | ( | gzFile | file | ) |
const char* ZEXPORT gzerror | ( | gzFile | file, | |
int * | errnum | |||
) |
int ZEXPORT gzflush | ( | gzFile | file, | |
int | flush | |||
) |
int ZEXPORT gzgetc | ( | gzFile | file | ) |
char* ZEXPORT gzgets | ( | gzFile | file, | |
char * | buf, | |||
int | len | |||
) |
gzFile ZEXPORT gzopen | ( | char * | path, | |
const char * | mode | |||
) | const |
int ZEXPORTVA gzprintf | ( | gzFile | file, | |
const char * | format, | |||
... | ||||
) |
int ZEXPORT gzputc | ( | gzFile | file, | |
int | c | |||
) |
int ZEXPORT gzputs | ( | gzFile | file, | |
const char * | s | |||
) |
int ZEXPORT gzrewind | ( | gzFile | file | ) |
z_off_t ZEXPORT gzseek | ( | gzFile | file, | |
z_off_t | offset, | |||
int | whence | |||
) |
int ZEXPORT gzsetparams | ( | gzFile | file, | |
int | level, | |||
int | strategy | |||
) |
z_off_t ZEXPORT gztell | ( | gzFile | file | ) |
int ZEXPORT gzungetc | ( | int | c, | |
gzFile | file | |||
) |
local int get_byte OF | ( | (gz_stream *s) | ) |
local gzFile gz_open OF | ( | (const char *path, const char *mode, intfd) | ) |
local void putLong OF | ( | (FILE *file, uLong x) | ) |
local int do_flush OF | ( | (gzFile file, int flush) | ) |
local void putLong | ( | FILE * | file, | |
uLong | x | |||
) |