COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
zlib.h File Reference
#include "zconf.h"
Include dependency graph for zlib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  z_stream_s
 
struct  gz_header_s
 
struct  gzFile_s
 
struct  internal_state
 

Macros

#define ZLIB_VERSION   "1.2.8"
 
#define ZLIB_VERNUM   0x1280
 
#define ZLIB_VER_MAJOR   1
 
#define ZLIB_VER_MINOR   2
 
#define ZLIB_VER_REVISION   8
 
#define ZLIB_VER_SUBREVISION   0
 
#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_BLOCK   5
 
#define Z_TREES   6
 
#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_RLE   3
 
#define Z_FIXED   4
 
#define Z_DEFAULT_STRATEGY   0
 
#define Z_BINARY   0
 
#define Z_TEXT   1
 
#define Z_ASCII   Z_TEXT /* for compatibility with 1.2.2 and earlier */
 
#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, (int)sizeof(z_stream))
 
#define inflateInit(strm)   inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
 
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy)
 
#define inflateInit2(strm, windowBits)
 
#define inflateBackInit(strm, windowBits, window)
 
#define gzgetc(g)   ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g))
 

Typedefs

typedef voidpf(* alloc_func) ()
 
typedef void(* free_func) ()
 
typedef struct z_stream_s z_stream
 
typedef z_streamz_streamp
 
typedef struct gz_header_s gz_header
 
typedef gz_headergz_headerp
 
typedef unsigned(* in_func) ()
 
typedef int(* out_func) ()
 
typedef struct gzFile_sgzFile
 

Functions

char * zlibVersion ()
 
int deflate ()
 
int deflateEnd ()
 
int inflate ()
 
int inflateEnd ()
 
int deflateSetDictionary ()
 
int deflateCopy ()
 
int deflateReset ()
 
int deflateParams ()
 
int deflateTune ()
 
uLong deflateBound ()
 
int deflatePending ()
 
int deflatePrime ()
 
int deflateSetHeader ()
 
int inflateSetDictionary ()
 
int inflateGetDictionary ()
 
int inflateSync ()
 
int inflateCopy ()
 
int inflateReset ()
 
int inflateReset2 ()
 
int inflatePrime ()
 
long inflateMark ()
 
int inflateGetHeader ()
 
int inflateBack ()
 
int inflateBackEnd ()
 
uLong zlibCompileFlags ()
 
int compress ()
 
int compress2 ()
 
uLong compressBound ()
 
int uncompress ()
 
gzFile gzdopen ()
 
int gzbuffer ()
 
int gzsetparams ()
 
int gzread ()
 
int gzwrite ()
 
int gzprintf ()
 
int gzputs ()
 
char * gzgets ()
 
int gzputc ()
 
int gzgetc ()
 
int gzungetc ()
 
int gzflush ()
 
int gzrewind ()
 
int gzeof ()
 
int gzdirect ()
 
int gzclose ()
 
int gzclose_r ()
 
int gzclose_w ()
 
char * gzerror ()
 
void gzclearerr ()
 
uLong adler32 ()
 
uLong crc32 ()
 
int deflateInit_ ()
 
int inflateInit_ ()
 
int deflateInit2_ ()
 
int inflateInit2_ ()
 
int inflateBackInit_ ()
 
int gzgetc_ ()
 
gzFile gzopen ()
 
off_t gzseek ()
 
off_t gztell ()
 
off_t gzoffset ()
 
uLong adler32_combine ()
 
uLong crc32_combine ()
 
char * zError ()
 
int inflateSyncPoint ()
 
z_crc_tget_crc_table ()
 
int inflateUndermine ()
 
int inflateResetKeep ()
 
int deflateResetKeep ()
 
int gzvprintf ()
 

Macro Definition Documentation

#define ZLIB_VERSION   "1.2.8"
#define ZLIB_VERNUM   0x1280
#define ZLIB_VER_MAJOR   1
#define ZLIB_VER_MINOR   2
#define ZLIB_VER_REVISION   8
#define ZLIB_VER_SUBREVISION   0
#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_BLOCK   5
#define Z_TREES   6
#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_RLE   3
#define Z_FIXED   4
#define Z_DEFAULT_STRATEGY   0
#define Z_BINARY   0
#define Z_TEXT   1
#define Z_ASCII   Z_TEXT /* for compatibility with 1.2.2 and earlier */
#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, (int)sizeof(z_stream))
#define inflateInit (   strm)    inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
#define deflateInit2 (   strm,
  level,
  method,
  windowBits,
  memLevel,
  strategy 
)
Value:
deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
(strategy), ZLIB_VERSION, (int)sizeof(z_stream))
int deflateInit2_()
#define ZLIB_VERSION
Definition: zlib.h:40
const JsonParse strategy
Definition: json11.cpp:364
Definition: zlib.h:85
#define inflateInit2 (   strm,
  windowBits 
)
Value:
inflateInit2_((strm), (windowBits), ZLIB_VERSION, \
(int)sizeof(z_stream))
#define ZLIB_VERSION
Definition: zlib.h:40
int inflateInit2_()
Definition: zlib.h:85
#define inflateBackInit (   strm,
  windowBits,
  window 
)
Value:
inflateBackInit_((strm), (windowBits), (window), \
ZLIB_VERSION, (int)sizeof(z_stream))
#define ZLIB_VERSION
Definition: zlib.h:40
int inflateBackInit_()
Definition: zlib.h:85
#define gzgetc (   g)    ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g))

Typedef Documentation

typedef voidpf(* alloc_func) ()
typedef void(* free_func) ()
typedef struct z_stream_s z_stream
typedef z_stream* z_streamp
typedef struct gz_header_s gz_header
typedef unsigned(* in_func) ()
typedef int(* out_func) ()
typedef struct gzFile_s* gzFile

Function Documentation

char* zlibVersion ( )
31 {
32  return ZLIB_VERSION;
33 }
#define ZLIB_VERSION
Definition: zlib.h:40
int deflate ( )
int deflateEnd ( )
int inflate ( )
int inflateEnd ( )
int deflateSetDictionary ( )
int deflateCopy ( )
int deflateReset ( )
int deflateParams ( )
int deflateTune ( )
uLong deflateBound ( )
int deflatePending ( )
int deflatePrime ( )
int deflateSetHeader ( )
int inflateSetDictionary ( )
int inflateGetDictionary ( )
int inflateSync ( )
int inflateCopy ( )
int inflateReset ( )
int inflateReset2 ( )
int inflatePrime ( )
long inflateMark ( )
int inflateGetHeader ( )
int inflateBack ( )
int inflateBackEnd ( )
uLong zlibCompileFlags ( )
36 {
37  uLong flags;
38 
39  flags = 0;
40  switch ((int)(sizeof(uInt))) {
41  case 2: break;
42  case 4: flags += 1; break;
43  case 8: flags += 2; break;
44  default: flags += 3;
45  }
46  switch ((int)(sizeof(uLong))) {
47  case 2: break;
48  case 4: flags += 1 << 2; break;
49  case 8: flags += 2 << 2; break;
50  default: flags += 3 << 2;
51  }
52  switch ((int)(sizeof(voidpf))) {
53  case 2: break;
54  case 4: flags += 1 << 4; break;
55  case 8: flags += 2 << 4; break;
56  default: flags += 3 << 4;
57  }
58  switch ((int)(sizeof(z_off_t))) {
59  case 2: break;
60  case 4: flags += 1 << 6; break;
61  case 8: flags += 2 << 6; break;
62  default: flags += 3 << 6;
63  }
64 #ifdef DEBUG
65  flags += 1 << 8;
66 #endif
67 #if defined(ASMV) || defined(ASMINF)
68  flags += 1 << 9;
69 #endif
70 #ifdef ZLIB_WINAPI
71  flags += 1 << 10;
72 #endif
73 #ifdef BUILDFIXED
74  flags += 1 << 12;
75 #endif
76 #ifdef DYNAMIC_CRC_TABLE
77  flags += 1 << 13;
78 #endif
79 #ifdef NO_GZCOMPRESS
80  flags += 1L << 16;
81 #endif
82 #ifdef NO_GZIP
83  flags += 1L << 17;
84 #endif
85 #ifdef PKZIP_BUG_WORKAROUND
86  flags += 1L << 20;
87 #endif
88 #ifdef FASTEST
89  flags += 1L << 21;
90 #endif
91 #if defined(STDC) || defined(Z_HAVE_STDARG_H)
92 # ifdef NO_vsnprintf
93  flags += 1L << 25;
94 # ifdef HAS_vsprintf_void
95  flags += 1L << 26;
96 # endif
97 # else
98 # ifdef HAS_vsnprintf_void
99  flags += 1L << 26;
100 # endif
101 # endif
102 #else
103  flags += 1L << 24;
104 # ifdef NO_snprintf
105  flags += 1L << 25;
106 # ifdef HAS_sprintf_void
107  flags += 1L << 26;
108 # endif
109 # else
110 # ifdef HAS_snprintf_void
111  flags += 1L << 26;
112 # endif
113 # endif
114 #endif
115  return flags;
116 }
#define z_off_t
Definition: zconf.h:457
Byte * voidpf
Definition: zconf.h:390
unsigned long uLong
Definition: zconf.h:371
unsigned int uInt
Definition: zconf.h:370
int compress ( )
int compress2 ( )
uLong compressBound ( )
int uncompress ( )
gzFile gzdopen ( )
int gzbuffer ( )
int gzsetparams ( )
int gzread ( )
int gzwrite ( )
int gzprintf ( )
int gzputs ( )
char* gzgets ( )
int gzputc ( )
int gzgetc ( )
int gzungetc ( )
int gzflush ( )
int gzrewind ( )
int gzeof ( )
int gzdirect ( )
int gzclose ( )
int gzclose_r ( )
int gzclose_w ( )
char* gzerror ( )
void gzclearerr ( )
uLong adler32 ( )
uLong crc32 ( )
int deflateInit_ ( )
int inflateInit_ ( )
int deflateInit2_ ( )
int inflateInit2_ ( )
int inflateBackInit_ ( )
int gzgetc_ ( )
gzFile gzopen ( )
off_t gzseek ( )
off_t gztell ( )
off_t gzoffset ( )
uLong adler32_combine ( )
uLong crc32_combine ( )
char* zError ( )
int inflateSyncPoint ( )
z_crc_t* get_crc_table ( )
191 {
192 #ifdef DYNAMIC_CRC_TABLE
193  if (crc_table_empty)
194  make_crc_table();
195 #endif /* DYNAMIC_CRC_TABLE */
196  return (const z_crc_t FAR *)crc_table;
197 }
unsigned long z_crc_t
Definition: zconf.h:408
local const z_crc_t FAR crc_table[TBLS][256]
Definition: crc32.h:5
#define FAR
Definition: jmorecfg.h:215
int inflateUndermine ( )
int inflateResetKeep ( )
int deflateResetKeep ( )
int gzvprintf ( )