zenilib
0.5.3.0
|
Go to the source code of this file.
Macros | |
#define | ALLOC(size) malloc(size) |
#define | ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */ |
#define | COMMENT 0x10 /* bit 4 set: file comment present */ |
#define | EXTRA_FIELD 0x04 /* bit 2 set: extra field present */ |
#define | HEAD_CRC 0x02 /* bit 1 set: header CRC present */ |
#define | ORIG_NAME 0x08 /* bit 3 set: original file name present */ |
#define | RESERVED 0xE0 /* bits 5..7: reserved */ |
#define | TRYFREE(p) {if (p) free(p);} |
#define | Z_BUFSIZE 16384 |
#define | Z_PRINTF_BUFSIZE 4096 |
#define | zstrerror(errnum) "" |
Typedefs | |
typedef struct gz_stream | gz_stream |
Variables | |
static int const | gz_magic [2] = {0x1f, 0x8b} |
#define ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */ |
#define EXTRA_FIELD 0x04 /* bit 2 set: extra field present */ |
Definition at line 51 of file gzio.c.
Referenced by check_header().
#define HEAD_CRC 0x02 /* bit 1 set: header CRC present */ |
Definition at line 50 of file gzio.c.
Referenced by check_header().
#define ORIG_NAME 0x08 /* bit 3 set: original file name present */ |
Definition at line 52 of file gzio.c.
Referenced by check_header().
#define RESERVED 0xE0 /* bits 5..7: reserved */ |
Definition at line 54 of file gzio.c.
Referenced by check_header().
#define Z_BUFSIZE 16384 |
Definition at line 26 of file gzio.c.
Referenced by check_header(), do_flush(), get_byte(), gz_open(), gzread(), gzseek(), gzsetparams(), and gzwrite().
#define Z_PRINTF_BUFSIZE 4096 |
Definition at line 30 of file gzio.c.
Referenced by gzprintf().
typedef struct gz_stream gz_stream |
Definition at line 288 of file gzio.c.
References COMMENT, EOF, EXTRA_FIELD, get_byte(), HEAD_CRC, if(), ORIG_NAME, RESERVED, Z_BUFSIZE, Z_DATA_ERROR, Z_DEFLATED, Z_ERRNO, and Z_OK.
Definition at line 355 of file gzio.c.
References deflateEnd(), inflateEnd(), NULL, TRYFREE, Z_ERRNO, Z_OK, and Z_STREAM_ERROR.
Referenced by Zeni::Singleton< TYPE >::completely_destroy(), FT_List_Finalize(), gz_open(), gzclose(), and Zeni::Game::run().
Definition at line 705 of file gzio.c.
References deflate(), NULL, Z_BUF_ERROR, Z_BUFSIZE, Z_ERRNO, Z_OK, Z_STREAM_END, and Z_STREAM_ERROR.
Definition at line 935 of file gzio.c.
References EOF, get_byte(), and Z_DATA_ERROR.
Referenced by gzread().
Definition at line 93 of file gzio.c.
References ALLOC, check_header(), crc32(), DEF_MEM_LEVEL, deflateInit2, destroy(), EOF, F_OPEN, inflateInit2, MAX_WBITS, NULL, OS_CODE, Z_BUFSIZE, Z_DEFAULT_COMPRESSION, Z_DEFAULT_STRATEGY, Z_DEFLATED, Z_FILTERED, Z_HUFFMAN_ONLY, Z_NULL, Z_OK, Z_RLE, and Z_STREAM_ERROR.
Referenced by gzdopen(), gzopen(), and gzopen64().
Definition at line 1017 of file gzio.c.
References NULL, Z_OK, and Z_STREAM_END.
Definition at line 953 of file gzio.c.
References destroy(), do_flush(), file, NULL, putLong(), Z_FINISH, Z_OK, and Z_STREAM_ERROR.
Definition at line 891 of file gzio.c.
References NULL, and Z_STREAM_END.
Definition at line 987 of file gzio.c.
References ALLOC, ERR_MSG, m, NULL, TRYFREE, Z_ERRNO, Z_MEM_ERROR, Z_NULL, Z_OK, Z_STREAM_ERROR, and zstrerror.
Referenced by gz_compress(), gz_uncompress(), and test_gzio().
Definition at line 746 of file gzio.c.
References do_flush(), Z_OK, and Z_STREAM_END.
Definition at line 208 of file gzio.c.
References gz_open().
Referenced by file_compress(), file_uncompress(), main(), and test_gzio().
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 637 of file gzio.c.
References gzwrite(), and Z_PRINTF_BUFSIZE.
Referenced by test_gzio().
Definition at line 394 of file gzio.c.
References check_header(), crc32(), EOF, getLong(), inflate(), inflateReset(), NULL, Z_BUFSIZE, Z_DATA_ERROR, Z_ERRNO, Z_NO_FLUSH, Z_NULL, Z_OK, Z_STREAM_END, Z_STREAM_ERROR, and zmemcpy().
Referenced by gz_uncompress(), gzgetc(), gzgets(), gzseek(), and test_gzio().
Definition at line 767 of file gzio.c.
References ALLOC, EOF, gzread(), gzrewind(), gzwrite(), int, NULL, SEEK_CUR, SEEK_END, SEEK_SET, Z_BUFSIZE, Z_DATA_ERROR, Z_ERRNO, Z_NULL, Z_STREAM_END, and zmemzero().
Referenced by gztell(), and test_gzio().
Definition at line 234 of file gzio.c.
References deflateParams(), NULL, Z_BUFSIZE, Z_ERRNO, and Z_STREAM_ERROR.
Definition at line 881 of file gzio.c.
References gzseek(), and SEEK_CUR.
Referenced by test_gzio().
Definition at line 515 of file gzio.c.
References EOF, NULL, Z_OK, and Z_STREAM_END.
Referenced by test_gzio().
Definition at line 559 of file gzio.c.
References crc32(), deflate(), NULL, Z_BUFSIZE, Z_ERRNO, Z_NO_FLUSH, Z_OK, and Z_STREAM_ERROR.
Referenced by gz_compress(), gzprintf(), gzputc(), gzputs(), and gzseek().