Go to the source code of this file.
Classes | |
struct | internal_state |
struct | gz_stream |
Macros | |
#define | _POSIX_C_SOURCE 1 /* for fdopen() */ |
#define | _BSD_SOURCE /* for vsnprintf */ |
#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 /* 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 | zstrerror(errnum) "" |
Typedefs | |
typedef struct gz_stream | gz_stream |
Functions | |
voidp malloc | OF ((uInt size)) |
void free | OF ((voidpf ptr)) |
gzFile gz_open | OF ((const char *path, const char *mode, int fd)) |
int do_flush | OF ((gzFile file, int flush)) |
int get_byte | OF ((gz_stream *s)) |
void putLong | OF ((FILE *file, uLong x)) |
gzFile | gz_open (char *path, const char *mode, int fd) const |
gzFile ZEXPORT | c4_gzopen (char *path, const char *mode) const |
gzFile ZEXPORT | c4_gzdopen (int fd, const char *mode) |
int ZEXPORT | c4_gzsetparams (gzFile file, int level, int strategy) |
int | get_byte (gz_stream *s) |
void | check_header (gz_stream *s) |
int | destroy (gz_stream *s) |
int ZEXPORT | c4_gzread (gzFile file, voidp buf, unsigned len) |
int ZEXPORT | c4_gzgetc (gzFile file) |
int ZEXPORT | c4_gzungetc (int c, gzFile file) |
char *ZEXPORT | c4_gzgets (gzFile file, char *buf, int len) |
int ZEXPORT | c4_gzwrite (gzFile file, voidpc buf, unsigned len) |
int ZEXPORTVA | c4_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 | c4_gzputc (gzFile file, int c) |
int ZEXPORT | c4_gzputs (gzFile file, const char *s) |
int | do_flush (gzFile file, int flush) |
int ZEXPORT | c4_gzflush (gzFile file, int flush) |
z_off_t ZEXPORT | c4_gzseek (gzFile file, z_off_t offset, int whence) |
int ZEXPORT | c4_gzrewind (gzFile file) |
z_off_t ZEXPORT | c4_gztell (gzFile file) |
int ZEXPORT | c4_gzeof (gzFile file) |
int ZEXPORT | c4_gzdirect (gzFile file) |
void | putLong (FILE *file, uLong x) |
uLong | getLong (gz_stream *s) |
int ZEXPORT | c4_gzclose (gzFile file) |
void ZEXPORT | c4_gzclearerr (gzFile file) |
struct gz_stream |
#define ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */ |
#define ORIG_NAME 0x08 /* bit 3 set: original file name present */ |
void ZEXPORT c4_gzclearerr | ( | gzFile | file | ) |
int ZEXPORT c4_gzclose | ( | gzFile | file | ) |
Definition at line 964 of file gzio.c.
References destroy(), do_flush(), putLong(), and s.
Referenced by CStdFile::Close(), CStdFile::Open(), and UncompressedFileSize().
int ZEXPORT c4_gzdirect | ( | gzFile | file | ) |
gzFile ZEXPORT c4_gzdopen | ( | int | fd, |
const char * | mode | ||
) |
Definition at line 228 of file gzio.c.
References gz_open(), and sprintf.
Referenced by CStdFile::Create(), CStdFile::Open(), and UncompressedFileSize().
int ZEXPORT c4_gzflush | ( | gzFile | file, |
int | flush | ||
) |
Definition at line 757 of file gzio.c.
References do_flush(), and s.
int ZEXPORT c4_gzgetc | ( | gzFile | file | ) |
char* ZEXPORT c4_gzgets | ( | gzFile | file, |
char * | buf, | ||
int | len | ||
) |
gzFile ZEXPORT c4_gzopen | ( | char * | path, |
const char * | mode | ||
) | const |
int ZEXPORTVA c4_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 c4_gzputc | ( | gzFile | file, |
int | c | ||
) |
int ZEXPORT c4_gzputs | ( | gzFile | file, |
const char * | s | ||
) |
int ZEXPORT c4_gzread | ( | gzFile | file, |
voidp | buf, | ||
unsigned | len | ||
) |
Definition at line 405 of file gzio.c.
References check_header(), getLong(), s, and Z_BUFSIZE.
Referenced by CStdFile::LoadBuffer(), and UncompressedFileSize().
int ZEXPORT c4_gzrewind | ( | gzFile | file | ) |
Definition at line 868 of file gzio.c.
References s.
Referenced by CStdFile::Rewind().
z_off_t ZEXPORT c4_gzseek | ( | gzFile | file, |
z_off_t | offset, | ||
int | whence | ||
) |
int ZEXPORT c4_gzsetparams | ( | gzFile | file, |
int | level, | ||
int | strategy | ||
) |
z_off_t ZEXPORT c4_gztell | ( | gzFile | file | ) |
int ZEXPORT c4_gzwrite | ( | gzFile | file, |
voidpc | buf, | ||
unsigned | len | ||
) |
Definition at line 570 of file gzio.c.
Referenced by CStdFile::SaveBuffer().
void check_header | ( | gz_stream * | s | ) |
Definition at line 297 of file gzio.c.
Referenced by c4_gzread().
int destroy | ( | gz_stream * | s | ) |
Definition at line 366 of file gzio.c.
Referenced by c4_gzclose(), and gz_open().
int do_flush | ( | gzFile | file, |
int | flush | ||
) |
Definition at line 716 of file gzio.c.
Referenced by c4_gzclose(), and c4_gzflush().
int get_byte | ( | gz_stream * | s | ) |
uLong getLong | ( | gz_stream * | s | ) |
Definition at line 946 of file gzio.c.
References get_byte(), and s.
Referenced by c4_gzread().
gzFile gz_open | ( | char * | path, |
const char * | mode, | ||
int | fd | ||
) | const |
Definition at line 102 of file gzio.c.
References ALLOC, DEF_MEM_LEVEL, destroy(), F_OPEN, s, and Z_BUFSIZE.
Referenced by c4_gzdopen(), and c4_gzopen().
gzFile gz_open OF | ( | (const char *path, const char *mode, int fd) | ) |
void putLong OF | ( | (FILE *file, uLong x) | ) |
int do_flush OF | ( | (gzFile file, int flush) | ) |
voidp malloc OF | ( | (uInt size) | ) |
void free OF | ( | (voidpf ptr) | ) |
void putLong | ( | FILE * | file, |
uLong | x | ||
) |
Definition at line 931 of file gzio.c.
Referenced by c4_gzclose().