Classes | Defines | Typedefs | Functions

zlibdll.h File Reference

#include "maxheap.h"
#include "strbasic.h"

Go to the source code of this file.

Classes

struct   z_stream_s

Defines

#define  ZLIB_VERSION   "1.0.4"
#define  USE_ISTREAMS
#define  Z_NO_FLUSH   0
#define  Z_PARTIAL_FLUSH   1
#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_NULL   0
#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  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))

Typedefs

typedef unsigned char  Byte
typedef unsigned int  uInt
typedef unsigned long  uLong
typedef unsigned long  uLong32
typedef void *  voidpf
typedef void *  voidp
typedef voidpf(*  alloc_func )(voidpf opaque, uInt items, uInt size)
typedef void(*  free_func )(voidpf opaque, voidpf address)
typedef Byte  Bytef
typedef char  charf
typedef int  intf
typedef uInt  uIntf
typedef uLong  uLongf
typedef uLong32  uLong32f
typedef z_stream_s  z_stream
typedef z_stream z_streamp
typedef mwchar_t  WCHAR
typedef voidp  gzFile

Functions

const char *  zlibVersion (void)
int  deflate (z_streamp strm, int flush)
int  deflateEnd (z_streamp strm)
int  inflateInit (z_streamp strm)
int  inflate (z_streamp strm, int flush)
int  inflateEnd (z_streamp strm)
int  deflateInit2 (z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy)
int  deflateReset (z_streamp strm)
int  inflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength)
int  inflateSync (z_streamp strm)
int  inflateReset (z_streamp strm)
int  compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int  uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
gzFile  gzopen (IStream *, const WCHAR *ipath, const char *path, const char *mode)
int  gzread (gzFile file, voidp buf, unsigned len)
int  gzwrite (gzFile file, const voidp buf, unsigned len)
int  gzflush (gzFile file, int flush)
int  gzclose (gzFile file)
const char *  gzerror (gzFile file, int *errnum)
uLong32  crc32 (uLong32 crc, const Bytef *buf, uInt len)
int  deflateInit_ (z_streamp strm, int level, const char *version, int stream_size)
int  inflateInit_ (z_streamp strm, const char *version, int stream_size)
int  deflateInit2_ (z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)
int  inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size)

Define Documentation

#define ZLIB_VERSION   "1.0.4"

Definition at line 40 of file zlibdll.h.

#define USE_ISTREAMS

Definition at line 45 of file zlibdll.h.

#define Z_NO_FLUSH   0

Definition at line 47 of file zlibdll.h.

#define Z_PARTIAL_FLUSH   1

Definition at line 48 of file zlibdll.h.

#define Z_SYNC_FLUSH   2

Definition at line 49 of file zlibdll.h.

#define Z_FULL_FLUSH   3

Definition at line 50 of file zlibdll.h.

#define Z_FINISH   4

Definition at line 51 of file zlibdll.h.

#define Z_OK   0

Definition at line 54 of file zlibdll.h.

#define Z_STREAM_END   1

Definition at line 55 of file zlibdll.h.

#define Z_NEED_DICT   2

Definition at line 56 of file zlibdll.h.

#define Z_ERRNO   (-1)

Definition at line 57 of file zlibdll.h.

#define Z_STREAM_ERROR   (-2)

Definition at line 58 of file zlibdll.h.

#define Z_DATA_ERROR   (-3)

Definition at line 59 of file zlibdll.h.

#define Z_MEM_ERROR   (-4)

Definition at line 60 of file zlibdll.h.

#define Z_BUF_ERROR   (-5)

Definition at line 61 of file zlibdll.h.

#define Z_VERSION_ERROR   (-6)

Definition at line 62 of file zlibdll.h.

#define Z_NULL   0

Definition at line 68 of file zlibdll.h.

#define Z_NO_COMPRESSION   0

Definition at line 70 of file zlibdll.h.

#define Z_BEST_SPEED   1

Definition at line 71 of file zlibdll.h.

#define Z_BEST_COMPRESSION   9

Definition at line 72 of file zlibdll.h.

#define Z_DEFAULT_COMPRESSION   (-1)

Definition at line 73 of file zlibdll.h.

#define Z_FILTERED   1

Definition at line 76 of file zlibdll.h.

#define Z_HUFFMAN_ONLY   2

Definition at line 77 of file zlibdll.h.

#define Z_DEFAULT_STRATEGY   0

Definition at line 78 of file zlibdll.h.

#define deflateInit (   strm,
  level 
)    deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))

Definition at line 664 of file zlibdll.h.

#define inflateInit (   strm )    inflateInit_((strm), ZLIB_VERSION, sizeof(z_stream))

Definition at line 666 of file zlibdll.h.

#define deflateInit2 (   strm,
  level,
  method,
  windowBits,
  memLevel,
  strategy 
)
Value:
deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
              (strategy),           ZLIB_VERSION, sizeof(z_stream))

Definition at line 668 of file zlibdll.h.

#define inflateInit2 (   strm,
  windowBits 
)    inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))

Definition at line 671 of file zlibdll.h.


Typedef Documentation

typedef unsigned char Byte

Definition at line 83 of file zlibdll.h.

typedef unsigned int uInt

Definition at line 84 of file zlibdll.h.

typedef unsigned long uLong

Definition at line 95 of file zlibdll.h.

typedef unsigned long uLong32

Definition at line 99 of file zlibdll.h.

typedef void* voidpf

Definition at line 101 of file zlibdll.h.

typedef void * voidp

Definition at line 102 of file zlibdll.h.

typedef voidpf(* alloc_func)(voidpf opaque, uInt items, uInt size)

Definition at line 103 of file zlibdll.h.

typedef void(* free_func)(voidpf opaque, voidpf address)

Definition at line 104 of file zlibdll.h.

typedef Byte Bytef

Definition at line 105 of file zlibdll.h.

typedef char charf

Definition at line 106 of file zlibdll.h.

typedef int intf

Definition at line 107 of file zlibdll.h.

typedef uInt uIntf

Definition at line 108 of file zlibdll.h.

typedef uLong uLongf

Definition at line 109 of file zlibdll.h.

typedef uLong32 uLong32f

Definition at line 110 of file zlibdll.h.

typedef z_stream* z_streamp

Definition at line 133 of file zlibdll.h.

typedef mwchar_t WCHAR

Definition at line 135 of file zlibdll.h.

typedef voidp gzFile

Definition at line 569 of file zlibdll.h.


Function Documentation

const char* zlibVersion ( void  )
int deflate ( z_streamp  strm,
int  flush 
)
int deflateEnd ( z_streamp  strm )
int inflateInit ( z_streamp  strm )
int inflate ( z_streamp  strm,
int  flush 
)
int inflateEnd ( z_streamp  strm )
int deflateInit2 ( z_streamp  strm,
int  level,
int  method,
int  windowBits,
int  memLevel,
int  strategy 
)
int deflateReset ( z_streamp  strm )
int inflateSetDictionary ( z_streamp  strm,
const Bytef dictionary,
uInt  dictLength 
)
int inflateSync ( z_streamp  strm )
int inflateReset ( z_streamp  strm )
int compress ( Bytef dest,
uLongf destLen,
const Bytef source,
uLong  sourceLen 
)
int uncompress ( Bytef dest,
uLongf destLen,
const Bytef source,
uLong  sourceLen 
)
gzFile gzopen ( IStream *  ,
const WCHAR ipath,
const char *  path,
const char *  mode 
)
int gzread ( gzFile  file,
voidp  buf,
unsigned  len 
)
int gzwrite ( gzFile  file,
const voidp  buf,
unsigned  len 
)
int gzflush ( gzFile  file,
int  flush 
)
int gzclose ( gzFile  file )
const char* gzerror ( gzFile  file,
int *  errnum 
)
uLong32 crc32 ( uLong32  crc,
const Bytef buf,
uInt  len 
)
int deflateInit_ ( z_streamp  strm,
int  level,
const char *  version,
int  stream_size 
)
int inflateInit_ ( z_streamp  strm,
const char *  version,
int  stream_size 
)
int deflateInit2_ ( z_streamp  strm,
int  level,
int  method,
int  windowBits,
int  memLevel,
int  strategy,
const char *  version,
int  stream_size 
)
int inflateInit2_ ( z_streamp  strm,
int  windowBits,
const char *  version,
int  stream_size 
)