| 
    Oolite 1.91.0.7712-251017-85ce217
    
   | 
 
#include <stddef.h>#include <time.h>Go to the source code of this file.
Classes | |
| struct | mz_stream_s | 
Typedefs | |
| typedef unsigned long | mz_ulong | 
| typedef void *(* | mz_alloc_func) (void *opaque, size_t items, size_t size) | 
| typedef void(* | mz_free_func) (void *opaque, void *address) | 
| typedef void *(* | mz_realloc_func) (void *opaque, void *address, size_t items, size_t size) | 
| typedef struct mz_stream_s | mz_stream | 
| typedef mz_stream * | mz_streamp | 
| typedef unsigned char | Byte | 
| typedef unsigned int | uInt | 
| typedef mz_ulong | uLong | 
| typedef Byte | Bytef | 
| typedef uInt | uIntf | 
| typedef char | charf | 
| typedef int | intf | 
| typedef void * | voidpf | 
| typedef uLong | uLongf | 
| typedef void * | voidp | 
| typedef void *const | voidpc | 
Enumerations | |
| enum | {  MZ_DEFAULT_STRATEGY = 0 , MZ_FILTERED = 1 , MZ_HUFFMAN_ONLY = 2 , MZ_RLE = 3 , MZ_FIXED = 4 }  | 
| enum | {  MZ_NO_COMPRESSION = 0 , MZ_BEST_SPEED = 1 , MZ_BEST_COMPRESSION = 9 , MZ_UBER_COMPRESSION = 10 , MZ_DEFAULT_LEVEL = 6 , MZ_DEFAULT_COMPRESSION = -1 }  | 
| enum | {  MZ_NO_FLUSH = 0 , MZ_PARTIAL_FLUSH = 1 , MZ_SYNC_FLUSH = 2 , MZ_FULL_FLUSH = 3 , MZ_FINISH = 4 , MZ_BLOCK = 5 }  | 
| enum | {  MZ_OK = 0 , MZ_STREAM_END = 1 , MZ_NEED_DICT = 2 , MZ_ERRNO = -1 , MZ_STREAM_ERROR = -2 , MZ_DATA_ERROR = -3 , MZ_MEM_ERROR = -4 , MZ_BUF_ERROR = -5 , MZ_VERSION_ERROR = -6 , MZ_PARAM_ERROR = -10000 }  | 
Functions | |
| MINIZ_EXPORT void | mz_free (void *p) | 
| MINIZ_EXPORT mz_ulong | mz_adler32 (mz_ulong adler, const unsigned char *ptr, size_t buf_len) | 
| MINIZ_EXPORT mz_ulong | mz_crc32 (mz_ulong crc, const unsigned char *ptr, size_t buf_len) | 
| MINIZ_EXPORT const char * | mz_version (void) | 
| MINIZ_EXPORT int | mz_deflateInit (mz_streamp pStream, int level) | 
| MINIZ_EXPORT int | mz_deflateInit2 (mz_streamp pStream, int level, int method, int window_bits, int mem_level, int strategy) | 
| MINIZ_EXPORT int | mz_deflateReset (mz_streamp pStream) | 
| MINIZ_EXPORT int | mz_deflate (mz_streamp pStream, int flush) | 
| MINIZ_EXPORT int | mz_deflateEnd (mz_streamp pStream) | 
| MINIZ_EXPORT mz_ulong | mz_deflateBound (mz_streamp pStream, mz_ulong source_len) | 
| MINIZ_EXPORT int | mz_compress (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len) | 
| MINIZ_EXPORT int | mz_compress2 (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len, int level) | 
| MINIZ_EXPORT mz_ulong | mz_compressBound (mz_ulong source_len) | 
| MINIZ_EXPORT int | mz_inflateInit (mz_streamp pStream) | 
| MINIZ_EXPORT int | mz_inflateInit2 (mz_streamp pStream, int window_bits) | 
| MINIZ_EXPORT int | mz_inflateReset (mz_streamp pStream) | 
| MINIZ_EXPORT int | mz_inflate (mz_streamp pStream, int flush) | 
| MINIZ_EXPORT int | mz_inflateEnd (mz_streamp pStream) | 
| MINIZ_EXPORT int | mz_uncompress (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len) | 
| MINIZ_EXPORT int | mz_uncompress2 (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong *pSource_len) | 
| MINIZ_EXPORT const char * | mz_error (int err) | 
| #define adler32 mz_adler32 | 
| #define alloc_func mz_alloc_func | 
Definition at line 484 of file miniz.h.
Referenced by unzOpenCurrentFile3().
| #define compress mz_compress | 
| #define compress2 mz_compress2 | 
| #define compressBound mz_compressBound | 
| #define crc32 mz_crc32 | 
Definition at line 511 of file miniz.h.
Referenced by mz_crc32(), and unzReadCurrentFile().
| #define deflate mz_deflate | 
| #define deflateBound mz_deflateBound | 
| #define deflateEnd mz_deflateEnd | 
| #define deflateInit mz_deflateInit | 
| #define deflateInit2 mz_deflateInit2 | 
| #define deflateReset mz_deflateReset | 
| #define free_func mz_free_func | 
Definition at line 485 of file miniz.h.
Referenced by unzOpenCurrentFile3().
| #define inflate mz_inflate | 
Definition at line 505 of file miniz.h.
Referenced by unzReadCurrentFile().
| #define inflateEnd mz_inflateEnd | 
Definition at line 506 of file miniz.h.
Referenced by unzCloseCurrentFile().
| #define inflateInit mz_inflateInit | 
| #define inflateInit2 mz_inflateInit2 | 
Definition at line 503 of file miniz.h.
Referenced by unzOpenCurrentFile3().
| #define inflateReset mz_inflateReset | 
| #define MAX_WBITS 15 | 
Definition at line 513 of file miniz.h.
Referenced by unzOpenCurrentFile3().
| #define MZ_ADLER32_INIT (1) | 
Definition at line 240 of file miniz.h.
Referenced by mz_adler32(), and mz_deflateInit2().
| #define MZ_CRC32_INIT (0) | 
Definition at line 244 of file miniz.h.
Referenced by mz_zip_reader_extract_iter_new(), mz_zip_reader_extract_to_callback(), mz_zip_reader_extract_to_mem_no_alloc1(), mz_zip_validate_file(), mz_zip_writer_add_mem_ex_v2(), mz_zip_writer_add_read_buf_callback(), and tdefl_write_image_to_png_file_in_memory_ex().
| #define MZ_DEFAULT_WINDOW_BITS 15 | 
Definition at line 314 of file miniz.h.
Referenced by mz_deflateInit(), mz_deflateInit2(), mz_inflateInit(), and mz_inflateInit2().
| #define MZ_DEFLATED 8 | 
Definition at line 259 of file miniz.h.
Referenced by mz_deflateInit(), mz_deflateInit2(), mz_zip_reader_extract_iter_new(), mz_zip_reader_extract_to_callback(), mz_zip_reader_extract_to_mem_no_alloc1(), mz_zip_reader_is_file_supported(), mz_zip_validate_file(), mz_zip_writer_add_mem_ex_v2(), and mz_zip_writer_add_read_buf_callback().
| #define MZ_VERSION "11.0.2" | 
Definition at line 278 of file miniz.h.
Referenced by mz_version().
| #define uncompress mz_uncompress | 
| #define uncompress2 mz_uncompress2 | 
| #define Z_BEST_COMPRESSION MZ_BEST_COMPRESSION | 
| #define Z_BEST_SPEED MZ_BEST_SPEED | 
| #define Z_BUF_ERROR MZ_BUF_ERROR | 
| #define Z_DATA_ERROR MZ_DATA_ERROR | 
Definition at line 468 of file miniz.h.
Referenced by unzReadCurrentFile().
| #define Z_DEFAULT_COMPRESSION MZ_DEFAULT_COMPRESSION | 
| #define Z_DEFAULT_STRATEGY MZ_DEFAULT_STRATEGY | 
| #define Z_DEFAULT_WINDOW_BITS MZ_DEFAULT_WINDOW_BITS | 
| #define Z_DEFLATED MZ_DEFLATED | 
Definition at line 482 of file miniz.h.
Referenced by unz64local_CheckCurrentFileCoherencyHeader(), unzCloseCurrentFile(), and unzOpenCurrentFile3().
| #define Z_FILTERED MZ_FILTERED | 
| #define Z_FULL_FLUSH MZ_FULL_FLUSH | 
| #define Z_HUFFMAN_ONLY MZ_HUFFMAN_ONLY | 
| #define Z_MEM_ERROR MZ_MEM_ERROR | 
| #define Z_NEED_DICT MZ_NEED_DICT | 
| #define Z_NO_COMPRESSION MZ_NO_COMPRESSION | 
| #define Z_NO_FLUSH MZ_NO_FLUSH | 
| #define Z_OK MZ_OK | 
Definition at line 463 of file miniz.h.
Referenced by unzOpenCurrentFile3(), and unzReadCurrentFile().
| #define Z_PARAM_ERROR MZ_PARAM_ERROR | 
| #define Z_PARTIAL_FLUSH MZ_PARTIAL_FLUSH | 
| #define Z_STREAM_END MZ_STREAM_END | 
Definition at line 464 of file miniz.h.
Referenced by unzReadCurrentFile().
| #define Z_STREAM_ERROR MZ_STREAM_ERROR | 
| #define Z_SYNC_FLUSH MZ_SYNC_FLUSH | 
Definition at line 459 of file miniz.h.
Referenced by unzReadCurrentFile().
| #define Z_VERSION_ERROR MZ_VERSION_ERROR | 
| #define ZLIB_VER_MAJOR MZ_VER_MAJOR | 
| #define ZLIB_VER_MINOR MZ_VER_MINOR | 
| #define ZLIB_VER_REVISION MZ_VER_REVISION | 
| #define ZLIB_VER_SUBREVISION MZ_VER_SUBREVISION | 
| #define ZLIB_VERSION MZ_VERSION | 
| #define zlib_version mz_version() | 
| #define zlibVersion mz_version | 
| typedef void *(* mz_alloc_func) (void *opaque, size_t items, size_t size) | 
| typedef void *(* mz_realloc_func) (void *opaque, void *address, size_t items, size_t size) | 
| typedef struct mz_stream_s mz_stream | 
| typedef mz_stream* mz_streamp | 
| anonymous enum | 
| Enumerator | |
|---|---|
| MZ_DEFAULT_STRATEGY | |
| MZ_FILTERED | |
| MZ_HUFFMAN_ONLY | |
| MZ_RLE | |
| MZ_FIXED | |
Definition at line 249 of file miniz.h.
| anonymous enum | 
| Enumerator | |
|---|---|
| MZ_OK | |
| MZ_STREAM_END | |
| MZ_NEED_DICT | |
| MZ_ERRNO | |
| MZ_STREAM_ERROR | |
| MZ_DATA_ERROR | |
| MZ_MEM_ERROR | |
| MZ_BUF_ERROR | |
| MZ_VERSION_ERROR | |
| MZ_PARAM_ERROR | |
Definition at line 299 of file miniz.h.
| anonymous enum | 
| Enumerator | |
|---|---|
| MZ_NO_FLUSH | |
| MZ_PARTIAL_FLUSH | |
| MZ_SYNC_FLUSH | |
| MZ_FULL_FLUSH | |
| MZ_FINISH | |
| MZ_BLOCK | |
Definition at line 288 of file miniz.h.
| anonymous enum | 
| Enumerator | |
|---|---|
| MZ_NO_COMPRESSION | |
| MZ_BEST_SPEED | |
| MZ_BEST_COMPRESSION | |
| MZ_UBER_COMPRESSION | |
| MZ_DEFAULT_LEVEL | |
| MZ_DEFAULT_COMPRESSION | |
Definition at line 268 of file miniz.h.
Definition at line 41 of file miniz.c.
References MZ_ADLER32_INIT.
Referenced by tdefl_compress().
| MINIZ_EXPORT int mz_compress | ( | unsigned char * | pDest, | 
| mz_ulong * | pDest_len, | ||
| const unsigned char * | pSource, | ||
| mz_ulong | source_len ) | 
Definition at line 350 of file miniz.c.
References mz_compress2(), and MZ_DEFAULT_COMPRESSION.
| MINIZ_EXPORT int mz_compress2 | ( | unsigned char * | pDest, | 
| mz_ulong * | pDest_len, | ||
| const unsigned char * | pSource, | ||
| mz_ulong | source_len, | ||
| int | level ) | 
Definition at line 320 of file miniz.c.
References MZ_BUF_ERROR, mz_deflate(), mz_deflateEnd(), mz_deflateInit(), MZ_FINISH, MZ_OK, MZ_PARAM_ERROR, and MZ_STREAM_END.
Referenced by mz_compress().
Definition at line 355 of file miniz.c.
References mz_deflateBound().
| MINIZ_EXPORT int mz_deflate | ( | mz_streamp | pStream, | 
| int | flush ) | 
Definition at line 243 of file miniz.c.
References mz_stream_s::adler, mz_stream_s::avail_in, mz_stream_s::avail_out, MZ_BUF_ERROR, MZ_FINISH, MZ_OK, MZ_PARTIAL_FLUSH, MZ_STREAM_END, MZ_STREAM_ERROR, MZ_SYNC_FLUSH, mz_stream_s::next_in, mz_stream_s::next_out, mz_stream_s::state, tdefl_compress(), tdefl_get_adler32(), mz_stream_s::total_in, and mz_stream_s::total_out.
Referenced by mz_compress2().
| MINIZ_EXPORT mz_ulong mz_deflateBound | ( | mz_streamp | pStream, | 
| mz_ulong | source_len ) | 
Definition at line 313 of file miniz.c.
Referenced by mz_compressBound().
| MINIZ_EXPORT int mz_deflateEnd | ( | mz_streamp | pStream | ) | 
Definition at line 301 of file miniz.c.
References MZ_OK, MZ_STREAM_ERROR, mz_stream_s::opaque, mz_stream_s::state, and mz_stream_s::zfree.
Referenced by mz_compress2(), and mz_deflateInit2().
| MINIZ_EXPORT int mz_deflateInit | ( | mz_streamp | pStream, | 
| int | level ) | 
Definition at line 193 of file miniz.c.
References MZ_DEFAULT_STRATEGY, MZ_DEFAULT_WINDOW_BITS, MZ_DEFLATED, and mz_deflateInit2().
Referenced by mz_compress2().
| MINIZ_EXPORT int mz_deflateInit2 | ( | mz_streamp | pStream, | 
| int | level, | ||
| int | method, | ||
| int | window_bits, | ||
| int | mem_level, | ||
| int | strategy ) | 
Definition at line 198 of file miniz.c.
References mz_stream_s::adler, mz_stream_s::data_type, miniz_def_alloc_func(), miniz_def_free_func(), mz_stream_s::msg, MZ_ADLER32_INIT, MZ_DEFAULT_WINDOW_BITS, MZ_DEFLATED, mz_deflateEnd(), MZ_MEM_ERROR, MZ_OK, MZ_PARAM_ERROR, MZ_STREAM_ERROR, mz_stream_s::opaque, mz_stream_s::reserved, mz_stream_s::state, tdefl_create_comp_flags_from_zip_params(), tdefl_init(), mz_stream_s::total_in, mz_stream_s::total_out, mz_stream_s::zalloc, and mz_stream_s::zfree.
Referenced by mz_deflateInit().
| MINIZ_EXPORT int mz_deflateReset | ( | mz_streamp | pStream | ) | 
Definition at line 234 of file miniz.c.
References MZ_OK, MZ_STREAM_ERROR, mz_stream_s::state, tdefl_init(), mz_stream_s::total_in, mz_stream_s::total_out, mz_stream_s::zalloc, and mz_stream_s::zfree.
| MINIZ_EXPORT const char * mz_error | ( | int | err | ) | 
Definition at line 601 of file miniz.c.
References MZ_BUF_ERROR, MZ_DATA_ERROR, MZ_ERRNO, MZ_MEM_ERROR, MZ_NEED_DICT, MZ_OK, MZ_PARAM_ERROR, MZ_STREAM_END, MZ_STREAM_ERROR, and MZ_VERSION_ERROR.
| MINIZ_EXPORT void mz_free | ( | void * | p | ) | 
| MINIZ_EXPORT int mz_inflate | ( | mz_streamp | pStream, | 
| int | flush ) | 
Definition at line 440 of file miniz.c.
References mz_stream_s::adler, mz_stream_s::avail_in, mz_stream_s::avail_out, inflate_state::m_decomp, inflate_state::m_dict, inflate_state::m_dict_avail, inflate_state::m_dict_ofs, inflate_state::m_first_call, inflate_state::m_has_flushed, inflate_state::m_last_status, inflate_state::m_window_bits, MZ_BUF_ERROR, MZ_DATA_ERROR, MZ_FINISH, MZ_OK, MZ_PARTIAL_FLUSH, MZ_STREAM_END, MZ_STREAM_ERROR, MZ_SYNC_FLUSH, mz_stream_s::next_in, mz_stream_s::next_out, mz_stream_s::state, tinfl_decompress(), mz_stream_s::total_in, and mz_stream_s::total_out.
Referenced by mz_uncompress2().
| MINIZ_EXPORT int mz_inflateEnd | ( | mz_streamp | pStream | ) | 
Definition at line 552 of file miniz.c.
References MZ_OK, MZ_STREAM_ERROR, mz_stream_s::opaque, mz_stream_s::state, and mz_stream_s::zfree.
Referenced by mz_uncompress2().
| MINIZ_EXPORT int mz_inflateInit | ( | mz_streamp | pStream | ) | 
Definition at line 409 of file miniz.c.
References MZ_DEFAULT_WINDOW_BITS, and mz_inflateInit2().
Referenced by mz_uncompress2().
| MINIZ_EXPORT int mz_inflateInit2 | ( | mz_streamp | pStream, | 
| int | window_bits ) | 
Definition at line 373 of file miniz.c.
References mz_stream_s::adler, mz_stream_s::data_type, inflate_state::m_decomp, inflate_state::m_dict_avail, inflate_state::m_dict_ofs, inflate_state::m_first_call, inflate_state::m_has_flushed, inflate_state::m_last_status, inflate_state::m_window_bits, miniz_def_alloc_func(), miniz_def_free_func(), mz_stream_s::msg, MZ_DEFAULT_WINDOW_BITS, MZ_MEM_ERROR, MZ_OK, MZ_PARAM_ERROR, MZ_STREAM_ERROR, mz_stream_s::opaque, mz_stream_s::reserved, mz_stream_s::state, mz_stream_s::total_in, mz_stream_s::total_out, mz_stream_s::zalloc, and mz_stream_s::zfree.
Referenced by mz_inflateInit().
| MINIZ_EXPORT int mz_inflateReset | ( | mz_streamp | pStream | ) | 
Definition at line 414 of file miniz.c.
References mz_stream_s::adler, mz_stream_s::data_type, inflate_state::m_decomp, inflate_state::m_dict_avail, inflate_state::m_dict_ofs, inflate_state::m_first_call, inflate_state::m_has_flushed, inflate_state::m_last_status, mz_stream_s::msg, MZ_OK, MZ_STREAM_ERROR, mz_stream_s::reserved, mz_stream_s::state, mz_stream_s::total_in, and mz_stream_s::total_out.
| MINIZ_EXPORT int mz_uncompress | ( | unsigned char * | pDest, | 
| mz_ulong * | pDest_len, | ||
| const unsigned char * | pSource, | ||
| mz_ulong | source_len ) | 
Definition at line 594 of file miniz.c.
References mz_uncompress2().
| MINIZ_EXPORT int mz_uncompress2 | ( | unsigned char * | pDest, | 
| mz_ulong * | pDest_len, | ||
| const unsigned char * | pSource, | ||
| mz_ulong * | pSource_len ) | 
Definition at line 563 of file miniz.c.
References MZ_BUF_ERROR, MZ_DATA_ERROR, MZ_FINISH, mz_inflate(), mz_inflateEnd(), mz_inflateInit(), MZ_OK, MZ_PARAM_ERROR, and MZ_STREAM_END.
Referenced by mz_uncompress().
| MINIZ_EXPORT const char * mz_version | ( | void | ) | 
Definition at line 184 of file miniz.c.
References MZ_VERSION.