|
#define | _ZCONF_H |
|
#define | MAX_MEM_LEVEL 9 |
|
#define | MAX_WBITS 15 /* 32K LZ77 window */ |
|
#define | OF(args) args |
|
#define | SEEK_SET 0 /* Seek from beginning of file. */ |
|
#define | SEEK_CUR 1 /* Seek from current position. */ |
|
#define | SEEK_END 2 /* Set file pointer to EOF plus "offset" */ |
|
#define | ZLIB_VERSION "1.1.3" |
|
#define | Z_NO_FLUSH 0 |
|
#define | Z_PARTIAL_FLUSH 1 /* will be removed, use Z_SYNC_FLUSH instead */ |
|
#define | Z_SYNC_FLUSH 2 |
|
#define | Z_FULL_FLUSH 3 |
|
#define | Z_FINISH 4 |
|
#define | Z_OK 0 |
|
#define | Z_STREAM_END 1 |
|
#define | Z_NEED_DICT 2 |
|
#define | Z_ERRNO (-1) |
|
#define | Z_STREAM_ERROR (-2) |
|
#define | Z_DATA_ERROR (-3) |
|
#define | Z_MEM_ERROR (-4) |
|
#define | Z_BUF_ERROR (-5) |
|
#define | Z_VERSION_ERROR (-6) |
|
#define | Z_NO_COMPRESSION 0 |
|
#define | Z_BEST_SPEED 1 |
|
#define | Z_BEST_COMPRESSION 9 |
|
#define | Z_DEFAULT_COMPRESSION (-1) |
|
#define | Z_FILTERED 1 |
|
#define | Z_HUFFMAN_ONLY 2 |
|
#define | Z_DEFAULT_STRATEGY 0 |
|
#define | Z_BINARY 0 |
|
#define | Z_ASCII 1 |
|
#define | Z_UNKNOWN 2 |
|
#define | Z_DEFLATED 8 |
|
#define | Z_NULL 0 /* for initializing zalloc, zfree, opaque */ |
|
#define | zlib_version zlibVersion() |
|
#define | deflateInit(strm, level) deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream)) |
|
#define | inflateInit(strm) inflateInit_((strm), ZLIB_VERSION, sizeof(z_stream)) |
|
#define | deflateInit2(strm, level, method, windowBits, memLevel, strategy) |
|
#define | inflateInit2(strm, windowBits) inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream)) |
|
#define | ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)] |
|
#define | ERR_RETURN(strm, err) return (strm->msg = (char*)ERR_MSG(err), (err)) |
|
#define | DEF_WBITS MAX_WBITS |
|
#define | DEF_MEM_LEVEL 8 |
|
#define | STORED_BLOCK 0 |
|
#define | STATIC_TREES 1 |
|
#define | DYN_TREES 2 |
|
#define | MIN_MATCH 3 |
|
#define | MAX_MATCH 258 |
|
#define | PRESET_DICT 0x20 /* preset dictionary flag in zlib header */ |
|
#define | OS_CODE 0x03 /* assume Unix */ |
|
#define | F_OPEN(name, mode) fopen((name), (mode)) |
|
#define | zstrerror(errnum) "" |
|
#define | zmemcpy memcpy |
|
#define | zmemcmp memcmp |
|
#define | zmemzero(dest, len) memset(dest, 0, len) |
|
#define | Assert(cond, msg) |
|
#define | Trace(x) |
|
#define | Tracev(x) |
|
#define | Tracevv(x) |
|
#define | Tracec(c, x) |
|
#define | Tracecv(c, x) |
|
#define | ZALLOC(strm, items, size) (*((strm)->zalloc))((strm)->opaque, (items), (size)) |
|
#define | ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidp)(addr)) |
|
#define | TRY_FREE(s, p) {if (p) ZFREE(s, p);} |
|
#define | CASESENSITIVITYDEFAULT_NO |
|
#define | UNZ_BUFSIZE (65536) |
|
#define | UNZ_MAXFILENAMEINZIP (256) |
|
#define | ALLOC(size) (Mem_Alloc(size)) |
|
#define | TRYFREE(p) {if (p) Mem_Free(p);} |
|
#define | SIZECENTRALDIRITEM (0x2e) |
|
#define | SIZEZIPLOCALHEADER (0x1e) |
|
#define | CASESENSITIVITYDEFAULTVALUE 2 |
|
#define | STRCMPCASENOSENTIVEFUNCTION strcmpcasenosensitive_internal |
|
#define | BUFREADCOMMENT (0x400) |
|
#define | DO1(buf) crc = crc_table[((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8); |
|
#define | DO2(buf) DO1(buf); DO1(buf); |
|
#define | DO4(buf) DO2(buf); DO2(buf); |
|
#define | DO8(buf) DO4(buf); DO4(buf); |
|
#define | exop word.what.Exop |
|
#define | bits word.what.Bits |
|
#define | MANY 1440 |
|
#define | _INFUTIL_H |
|
#define | UPDBITS {s->bitb=b;s->bitk=k;} |
|
#define | UPDIN {z->avail_in=n;z->total_in+=p-z->next_in;z->next_in=p;} |
|
#define | UPDOUT {s->write=q;} |
|
#define | UPDATE {UPDBITS UPDIN UPDOUT} |
|
#define | LEAVE {UPDATE return inflate_flush(s,z,r);} |
|
#define | LOADIN {p=z->next_in;n=z->avail_in;b=s->bitb;k=s->bitk;} |
|
#define | NEEDBYTE {if(n)r=Z_OK;else LEAVE} |
|
#define | NEXTBYTE (n--,*p++) |
|
#define | NEEDBITS(j) {while(k<(j)){NEEDBYTE;b|=((uLong)NEXTBYTE)<<k;k+=8;}} |
|
#define | DUMPBITS(j) {b>>=(j);k-=(j);} |
|
#define | WAVAIL (uInt)(q<s->read?s->read-q-1:s->end-q) |
|
#define | LOADOUT {q=s->write;m=(uInt)WAVAIL;} |
|
#define | WRAP {if(q==s->end&&s->read!=s->window){q=s->window;m=(uInt)WAVAIL;}} |
|
#define | FLUSH {UPDOUT r=inflate_flush(s,z,r); LOADOUT} |
|
#define | NEEDOUT {if(m==0){WRAP if(m==0){FLUSH WRAP if(m==0) LEAVE}}r=Z_OK;} |
|
#define | OUTBYTE(a) {*q++=(Byte)(a);m--;} |
|
#define | LOAD {LOADIN LOADOUT} |
|
#define | exop word.what.Exop |
|
#define | bits word.what.Bits |
|
#define | BMAX 15 /* maximum bit length of any code */ |
|
#define | C0 *p++ = 0; |
|
#define | C2 C0 C0 C0 C0 |
|
#define | C4 C2 C2 C2 C2 |
|
#define | exop word.what.Exop |
|
#define | bits word.what.Bits |
|
#define | GRABBITS(j) {while(k<(j)){b|=((uLong)NEXTBYTE)<<k;k+=8;}} |
|
#define | UNGRAB {c=z->avail_in-n;c=(k>>3)<c?k>>3:c;n+=c;p-=c;k-=c<<3;} |
|
#define | exop word.what.Exop |
|
#define | bits word.what.Bits |
|
#define | BASE 65521L /* largest prime smaller than 65536 */ |
|
#define | NMAX 5552 |
|
#define | DO1(buf, i) {s1 += buf[i]; s2 += s1;} |
|
#define | DO2(buf, i) DO1(buf,i); DO1(buf,i+1); |
|
#define | DO4(buf, i) DO2(buf,i); DO2(buf,i+2); |
|
#define | DO8(buf, i) DO4(buf,i); DO4(buf,i+4); |
|
#define | DO16(buf) DO8(buf,0); DO8(buf,8); |
|
#define | iNEEDBYTE {if(z->avail_in==0)return r;r=f;} |
|
#define | iNEXTBYTE (z->avail_in--,z->total_in++,*z->next_in++) |
|
|
const char *zlibVersion | OF ((void)) |
|
int deflate | OF ((z_streamp strm, int flush)) |
|
int deflateEnd | OF ((z_streamp strm)) |
|
int deflateSetDictionary | OF ((z_streamp strm, const Byte *dictionary, uIntdictLength)) |
|
int deflateCopy | OF ((z_streamp dest, z_streamp source)) |
|
int deflateParams | OF ((z_streamp strm, int level, int strategy)) |
|
int compress | OF ((Byte *dest, uLong *destLen, const Byte *source, uLong sourceLen)) |
|
int compress2 | OF ((Byte *dest, uLong *destLen, const Byte *source, uLong sourceLen, int level)) |
|
gzFile gzopen | OF ((const char *path, const char *mode)) |
|
gzFile gzdopen | OF ((int fd, const char *mode)) |
|
int gzsetparams | OF ((gzFile file, int level, int strategy)) |
|
int gzread | OF ((gzFile file, voidp buf, unsigned len)) |
|
int gzprintf | OF ((gzFile file, const char *format,...)) |
|
int gzputs | OF ((gzFile file, const char *s)) |
|
char *gzgets | OF ((gzFile file, char *buf, int len)) |
|
int gzputc | OF ((gzFile file, int c)) |
|
int gzgetc | OF ((gzFile file)) |
|
int gzflush | OF ((gzFile file, int flush)) |
|
long gzseek | OF ((gzFile file, long offset, int whence)) |
|
const char *gzerror | OF ((gzFile file, int *errnum)) |
|
uLong adler32 | OF ((uLong adler, const Byte *buf, uInt len)) |
|
uLong crc32 | OF ((uLong crc, const Byte *buf, uInt len)) |
|
int deflateInit_ | OF ((z_streamp strm, int level, const char *version, int stream_size)) |
|
int inflateInit_ | OF ((z_streamp strm, const char *version, int stream_size)) |
|
int deflateInit2_ | OF ((z_streamp strm, intlevel, intmethod, int windowBits, int memLevel, int strategy, const char *version, int stream_size)) |
|
int inflateInit2_ | OF ((z_streamp strm, intwindowBits, const char *version, int stream_size)) |
|
const char *zError | OF ((int err)) |
|
int inflateSyncPoint | OF ((z_streamp z)) |
|
voidp zcalloc | OF ((voidp opaque, unsigned items, unsigned size)) |
|
void zcfree | OF ((voidp opaque, voidp ptr)) |
|
int | unzStringFileNameCompare (const char *fileName1, const char *fileName2, int iCaseSensitivity) |
|
unzFile | unzReOpen (const char *path, unzFile file) |
|
unzFile | unzOpen (const char *path) |
|
int | unzClose (unzFile file) |
|
int | unzGetGlobalInfo (unzFile file, unz_global_info *pglobal_info) |
|
int | unzGetCurrentFileInfo (unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) |
|
int | unzGoToFirstFile (unzFile file) |
|
int | unzGoToNextFile (unzFile file) |
|
int | unzGetCurrentFileInfoPosition (unzFile file, unsigned long *pos) |
|
int | unzSetCurrentFileInfoPosition (unzFile file, unsigned long pos) |
|
int | unzLocateFile (unzFile file, const char *szFileName, int iCaseSensitivity) |
|
int | unzOpenCurrentFile (unzFile file) |
|
int | unzReadCurrentFile (unzFile file, void *buf, unsigned len) |
|
long | unztell (unzFile file) |
|
int | unzeof (unzFile file) |
|
int | unzGetLocalExtrafield (unzFile file, void *buf, unsigned len) |
|
int | unzCloseCurrentFile (unzFile file) |
|
int | unzGetGlobalComment (unzFile file, char *szComment, uLong uSizeBuf) |
|
const uLong * | get_crc_table () |
|
uLong | crc32 (uLong crc, const Byte *buf, uInt len) |
|
inflate_blocks_statef
*inflate_blocks_new | OF ((z_streamp z, check_func c, uInt w)) |
|
int inflate_blocks | OF ((inflate_blocks_statef *, z_streamp, int)) |
|
void inflate_blocks_reset | OF ((inflate_blocks_statef *, z_streamp, uLong *)) |
|
int inflate_blocks_free | OF ((inflate_blocks_statef *, z_streamp)) |
|
void inflate_set_dictionary | OF ((inflate_blocks_statef *s, const Byte *d, uIntn)) |
|
int inflate_blocks_sync_point | OF ((inflate_blocks_statef *s)) |
|
int inflate_trees_bits | OF ((uInt *, uInt *, inflate_huft **, inflate_huft *, z_streamp)) |
|
int inflate_trees_dynamic | OF ((uInt, uInt, uInt *, uInt *, uInt *, inflate_huft **, inflate_huft **, inflate_huft *, z_streamp)) |
|
int inflate_trees_fixed | OF ((uInt *, uInt *, inflate_huft **, inflate_huft **, z_streamp)) |
|
inflate_codes_statef
*inflate_codes_new | OF ((uInt, uInt, inflate_huft *, inflate_huft *, z_streamp)) |
|
void inflate_codes_free | OF ((inflate_codes_statef *, z_streamp)) |
|
void | inflate_blocks_reset (inflate_blocks_statef *s, z_streamp z, uLong *c) |
|
inflate_blocks_statef * | inflate_blocks_new (z_streamp z, check_func c, uInt w) |
|
int | inflate_blocks (inflate_blocks_statef *s, z_streamp z, int r) |
|
int | inflate_blocks_free (inflate_blocks_statef *s, z_streamp z) |
|
void | inflate_set_dictionary (inflate_blocks_statef *s, const Byte *d, uInt n) |
|
int | inflate_blocks_sync_point (inflate_blocks_statef *s) |
|
int | inflate_flush (inflate_blocks_statef *s, z_streamp z, int r) |
|
int | inflate_trees_bits (uInt *c, uInt *bb, inflate_huft **tb, inflate_huft *hp, z_streamp z) |
|
int | inflate_trees_dynamic (uInt nl, uInt nd, uInt *c, uInt *bl, uInt *bd, inflate_huft **tl, inflate_huft **td, inflate_huft *hp, z_streamp z) |
|
int | inflate_trees_fixed (uInt *bl, uInt *bd, inflate_huft **tl, inflate_huft **td, z_streamp z) |
|
int | inflate_fast (uInt bl, uInt bd, inflate_huft *tl, inflate_huft *td, inflate_blocks_statef *s, z_streamp z) |
|
inflate_codes_statef * | inflate_codes_new (uInt bl, uInt bd, inflate_huft *tl, inflate_huft *td, z_streamp z) |
|
int | inflate_codes (inflate_blocks_statef *s, z_streamp z, int r) |
|
void | inflate_codes_free (inflate_codes_statef *c, z_streamp z) |
|
uLong | adler32 (uLong adler, const Byte *buf, uInt len) |
|
int | inflateReset (z_streamp z) |
|
int | inflateEnd (z_streamp z) |
|
int | inflateInit2_ (z_streamp z, int w, const char *version, int stream_size) |
|
int | inflateInit_ (z_streamp z, const char *version, int stream_size) |
|
int | inflate (z_streamp z, int f) |
|
int | inflateSetDictionary (z_streamp z, const Byte *dictionary, uInt dictLength) |
|
int | inflateSync (z_streamp z) |
|
int | inflateSyncPoint (z_streamp z) |
|
voidp | zcalloc (voidp opaque, unsigned items, unsigned size) |
|
void | zcfree (voidp opaque, voidp ptr) |
|