CBMC
miniz.h File Reference
#include <time.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdio.h>
+ Include dependency graph for miniz.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mz_stream_s
 
struct  tdefl_compressor
 
struct  tinfl_huff_table
 
struct  tinfl_decompressor_tag
 
struct  mz_zip_archive_file_stat
 
struct  mz_zip_archive
 

Macros

#define MINIZ_LITTLE_ENDIAN   1
 
#define MZ_ADLER32_INIT   (1)
 
#define MZ_CRC32_INIT   (0)
 
#define MZ_DEFLATED   8
 
#define MZ_VERSION   "9.1.15"
 
#define MZ_VERNUM   0x91F0
 
#define MZ_VER_MAJOR   9
 
#define MZ_VER_MINOR   1
 
#define MZ_VER_REVISION   15
 
#define MZ_VER_SUBREVISION   0
 
#define MZ_DEFAULT_WINDOW_BITS   15
 
#define Z_NULL   0
 
#define Z_NO_FLUSH   MZ_NO_FLUSH
 
#define Z_PARTIAL_FLUSH   MZ_PARTIAL_FLUSH
 
#define Z_SYNC_FLUSH   MZ_SYNC_FLUSH
 
#define Z_FULL_FLUSH   MZ_FULL_FLUSH
 
#define Z_FINISH   MZ_FINISH
 
#define Z_BLOCK   MZ_BLOCK
 
#define Z_OK   MZ_OK
 
#define Z_STREAM_END   MZ_STREAM_END
 
#define Z_NEED_DICT   MZ_NEED_DICT
 
#define Z_ERRNO   MZ_ERRNO
 
#define Z_STREAM_ERROR   MZ_STREAM_ERROR
 
#define Z_DATA_ERROR   MZ_DATA_ERROR
 
#define Z_MEM_ERROR   MZ_MEM_ERROR
 
#define Z_BUF_ERROR   MZ_BUF_ERROR
 
#define Z_VERSION_ERROR   MZ_VERSION_ERROR
 
#define Z_PARAM_ERROR   MZ_PARAM_ERROR
 
#define Z_NO_COMPRESSION   MZ_NO_COMPRESSION
 
#define Z_BEST_SPEED   MZ_BEST_SPEED
 
#define Z_BEST_COMPRESSION   MZ_BEST_COMPRESSION
 
#define Z_DEFAULT_COMPRESSION   MZ_DEFAULT_COMPRESSION
 
#define Z_DEFAULT_STRATEGY   MZ_DEFAULT_STRATEGY
 
#define Z_FILTERED   MZ_FILTERED
 
#define Z_HUFFMAN_ONLY   MZ_HUFFMAN_ONLY
 
#define Z_RLE   MZ_RLE
 
#define Z_FIXED   MZ_FIXED
 
#define Z_DEFLATED   MZ_DEFLATED
 
#define Z_DEFAULT_WINDOW_BITS   MZ_DEFAULT_WINDOW_BITS
 
#define alloc_func   mz_alloc_func
 
#define free_func   mz_free_func
 
#define internal_state   mz_internal_state
 
#define z_stream   mz_stream
 
#define deflateInit   mz_deflateInit
 
#define deflateInit2   mz_deflateInit2
 
#define deflateReset   mz_deflateReset
 
#define deflate   mz_deflate
 
#define deflateEnd   mz_deflateEnd
 
#define deflateBound   mz_deflateBound
 
#define compress   mz_compress
 
#define compress2   mz_compress2
 
#define compressBound   mz_compressBound
 
#define inflateInit   mz_inflateInit
 
#define inflateInit2   mz_inflateInit2
 
#define inflate   mz_inflate
 
#define inflateEnd   mz_inflateEnd
 
#define uncompress   mz_uncompress
 
#define crc32   mz_crc32
 
#define adler32   mz_adler32
 
#define MAX_WBITS   15
 
#define MAX_MEM_LEVEL   9
 
#define zError   mz_error
 
#define ZLIB_VERSION   MZ_VERSION
 
#define ZLIB_VERNUM   MZ_VERNUM
 
#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 zlibVersion   mz_version
 
#define zlib_version   mz_version()
 
#define MZ_FALSE   false
 
#define MZ_TRUE   true
 
#define MZ_MACRO_END   while(0)
 
#define MZ_FILE   FILE
 
#define MZ_TIME_T   time_t
 
#define MZ_ASSERT(x)   assert(x)
 
#define MZ_MALLOC(x)   malloc(x)
 
#define MZ_FREE(x)   free(x)
 
#define MZ_REALLOC(p, x)   realloc(p, x)
 
#define MZ_MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
#define MZ_MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define MZ_CLEAR_OBJ(obj)   memset(&(obj), 0, sizeof(obj))
 
#define MZ_READ_LE16(p)   ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
 
#define MZ_READ_LE32(p)   ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
 
#define MZ_READ_LE64(p)   (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
 
#define MZ_FORCEINLINE   inline
 
#define MZ_UINT16_MAX   (0xFFFFU)
 
#define MZ_UINT32_MAX   (0xFFFFFFFFU)
 
#define TDEFL_LESS_MEMORY   0
 
#define TINFL_DECOMPRESS_MEM_TO_MEM_FAILED   ((size_t)(-1))
 
#define TINFL_LZ_DICT_SIZE   32768
 
#define tinfl_init(r)
 
#define tinfl_get_adler32(r)   (r)->m_check_adler32
 
#define TINFL_BITBUF_SIZE   (32)
 

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_streammz_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
 
typedef uint8_t mz_uint8
 
typedef int16_t mz_int16
 
typedef uint16_t mz_uint16
 
typedef uint32_t mz_uint32
 
typedef unsigned int mz_uint
 
typedef int64_t mz_int64
 
typedef uint64_t mz_uint64
 
typedef bool mz_bool
 
typedef mz_bool(* tdefl_put_buf_func_ptr) (const void *pBuf, int len, void *pUser)
 
typedef int(* tinfl_put_buf_func_ptr) (const void *pBuf, int len, void *pUser)
 
typedef struct tinfl_decompressor_tag tinfl_decompressor
 
typedef mz_uint32 tinfl_bit_buf_t
 
typedef size_t(* mz_file_read_func) (void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n)
 
typedef size_t(* mz_file_write_func) (void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n)
 
typedef struct mz_zip_internal_state_tag mz_zip_internal_state
 

Enumerations

enum  {
  MZ_DEFAULT_STRATEGY = 0 , MZ_FILTERED = 1 , MZ_HUFFMAN_ONLY = 2 , MZ_RLE = 3 ,
  MZ_FIXED = 4
}
 
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
}
 
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  { TDEFL_HUFFMAN_ONLY = 0 , TDEFL_DEFAULT_MAX_PROBES = 128 , TDEFL_MAX_PROBES_MASK = 0xFFF }
 
enum  {
  TDEFL_WRITE_ZLIB_HEADER = 0x01000 , TDEFL_COMPUTE_ADLER32 = 0x02000 , TDEFL_GREEDY_PARSING_FLAG = 0x04000 , TDEFL_NONDETERMINISTIC_PARSING_FLAG = 0x08000 ,
  TDEFL_RLE_MATCHES = 0x10000 , TDEFL_FILTER_MATCHES = 0x20000 , TDEFL_FORCE_ALL_STATIC_BLOCKS = 0x40000 , TDEFL_FORCE_ALL_RAW_BLOCKS = 0x80000
}
 
enum  {
  TDEFL_MAX_HUFF_TABLES = 3 , TDEFL_MAX_HUFF_SYMBOLS_0 = 288 , TDEFL_MAX_HUFF_SYMBOLS_1 = 32 , TDEFL_MAX_HUFF_SYMBOLS_2 = 19 ,
  TDEFL_LZ_DICT_SIZE = 32768 , TDEFL_LZ_DICT_SIZE_MASK = TDEFL_LZ_DICT_SIZE - 1 , TDEFL_MIN_MATCH_LEN = 3 , TDEFL_MAX_MATCH_LEN = 258
}
 
enum  {
  TDEFL_LZ_CODE_BUF_SIZE = 64 * 1024 , TDEFL_OUT_BUF_SIZE = (TDEFL_LZ_CODE_BUF_SIZE * 13) / 10 , TDEFL_MAX_HUFF_SYMBOLS = 288 , TDEFL_LZ_HASH_BITS = 15 ,
  TDEFL_LEVEL1_HASH_SIZE_MASK = 4095 , TDEFL_LZ_HASH_SHIFT = (TDEFL_LZ_HASH_BITS + 2) / 3 , TDEFL_LZ_HASH_SIZE = 1 << TDEFL_LZ_HASH_BITS
}
 
enum  tdefl_status { TDEFL_STATUS_BAD_PARAM = -2 , TDEFL_STATUS_PUT_BUF_FAILED = -1 , TDEFL_STATUS_OKAY = 0 , TDEFL_STATUS_DONE = 1 }
 
enum  tdefl_flush { TDEFL_NO_FLUSH = 0 , TDEFL_SYNC_FLUSH = 2 , TDEFL_FULL_FLUSH = 3 , TDEFL_FINISH = 4 }
 
enum  { TINFL_FLAG_PARSE_ZLIB_HEADER = 1 , TINFL_FLAG_HAS_MORE_INPUT = 2 , TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF = 4 , TINFL_FLAG_COMPUTE_ADLER32 = 8 }
 
enum  tinfl_status {
  TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS = -4 , TINFL_STATUS_BAD_PARAM = -3 , TINFL_STATUS_ADLER32_MISMATCH = -2 , TINFL_STATUS_FAILED = -1 ,
  TINFL_STATUS_DONE = 0 , TINFL_STATUS_NEEDS_MORE_INPUT = 1 , TINFL_STATUS_HAS_MORE_OUTPUT = 2
}
 
enum  {
  TINFL_MAX_HUFF_TABLES = 3 , TINFL_MAX_HUFF_SYMBOLS_0 = 288 , TINFL_MAX_HUFF_SYMBOLS_1 = 32 , TINFL_MAX_HUFF_SYMBOLS_2 = 19 ,
  TINFL_FAST_LOOKUP_BITS = 10 , TINFL_FAST_LOOKUP_SIZE = 1 << TINFL_FAST_LOOKUP_BITS
}
 
enum  { MZ_ZIP_MAX_IO_BUF_SIZE = 64 * 1024 , MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE = 512 , MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE = 512 }
 
enum  mz_zip_mode { MZ_ZIP_MODE_INVALID = 0 , MZ_ZIP_MODE_READING = 1 , MZ_ZIP_MODE_WRITING = 2 , MZ_ZIP_MODE_WRITING_HAS_BEEN_FINALIZED = 3 }
 
enum  mz_zip_flags {
  MZ_ZIP_FLAG_CASE_SENSITIVE = 0x0100 , MZ_ZIP_FLAG_IGNORE_PATH = 0x0200 , MZ_ZIP_FLAG_COMPRESSED_DATA = 0x0400 , MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY = 0x0800 ,
  MZ_ZIP_FLAG_VALIDATE_LOCATE_FILE_FLAG = 0x1000 , MZ_ZIP_FLAG_VALIDATE_HEADERS_ONLY = 0x2000 , MZ_ZIP_FLAG_WRITE_ZIP64 = 0x4000 , MZ_ZIP_FLAG_WRITE_ALLOW_READING = 0x8000 ,
  MZ_ZIP_FLAG_UTF8_FILENAME = 0x10000
}
 
enum  mz_zip_type {
  MZ_ZIP_TYPE_INVALID = 0 , MZ_ZIP_TYPE_USER , MZ_ZIP_TYPE_MEMORY , MZ_ZIP_TYPE_HEAP ,
  MZ_ZIP_TYPE_FILE , MZ_ZIP_TYPE_CFILE , MZ_ZIP_TOTAL_TYPES
}
 
enum  mz_zip_error {
  MZ_ZIP_NO_ERROR = 0 , MZ_ZIP_UNDEFINED_ERROR , MZ_ZIP_TOO_MANY_FILES , MZ_ZIP_FILE_TOO_LARGE ,
  MZ_ZIP_UNSUPPORTED_METHOD , MZ_ZIP_UNSUPPORTED_ENCRYPTION , MZ_ZIP_UNSUPPORTED_FEATURE , MZ_ZIP_FAILED_FINDING_CENTRAL_DIR ,
  MZ_ZIP_NOT_AN_ARCHIVE , MZ_ZIP_INVALID_HEADER_OR_CORRUPTED , MZ_ZIP_UNSUPPORTED_MULTIDISK , MZ_ZIP_DECOMPRESSION_FAILED ,
  MZ_ZIP_COMPRESSION_FAILED , MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE , MZ_ZIP_CRC_CHECK_FAILED , MZ_ZIP_UNSUPPORTED_CDIR_SIZE ,
  MZ_ZIP_ALLOC_FAILED , MZ_ZIP_FILE_OPEN_FAILED , MZ_ZIP_FILE_CREATE_FAILED , MZ_ZIP_FILE_WRITE_FAILED ,
  MZ_ZIP_FILE_READ_FAILED , MZ_ZIP_FILE_CLOSE_FAILED , MZ_ZIP_FILE_SEEK_FAILED , MZ_ZIP_FILE_STAT_FAILED ,
  MZ_ZIP_INVALID_PARAMETER , MZ_ZIP_INVALID_FILENAME , MZ_ZIP_BUF_TOO_SMALL , MZ_ZIP_INTERNAL_ERROR ,
  MZ_ZIP_FILE_NOT_FOUND , MZ_ZIP_ARCHIVE_TOO_LARGE , MZ_ZIP_VALIDATION_FAILED , MZ_ZIP_WRITE_CALLBACK_FAILED ,
  MZ_ZIP_TOTAL_ERRORS
}
 

Functions

void mz_free (void *p)
 
mz_ulong mz_adler32 (mz_ulong adler, const unsigned char *ptr, size_t buf_len)
 
mz_ulong mz_crc32 (mz_ulong crc, const unsigned char *ptr, size_t buf_len)
 
const char * mz_version (void)
 
int mz_deflateInit (mz_streamp pStream, int level)
 
int mz_deflateInit2 (mz_streamp pStream, int level, int method, int window_bits, int mem_level, int strategy)
 
int mz_deflateReset (mz_streamp pStream)
 
int mz_deflate (mz_streamp pStream, int flush)
 
int mz_deflateEnd (mz_streamp pStream)
 
mz_ulong mz_deflateBound (mz_streamp pStream, mz_ulong source_len)
 
int mz_compress (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len)
 
int mz_compress2 (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len, int level)
 
mz_ulong mz_compressBound (mz_ulong source_len)
 
int mz_inflateInit (mz_streamp pStream)
 
int mz_inflateInit2 (mz_streamp pStream, int window_bits)
 
int mz_inflate (mz_streamp pStream, int flush)
 
int mz_inflateEnd (mz_streamp pStream)
 
int mz_uncompress (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len)
 
const char * mz_error (int err)
 
void * miniz_def_alloc_func (void *opaque, size_t items, size_t size)
 
void miniz_def_free_func (void *opaque, void *address)
 
void * miniz_def_realloc_func (void *opaque, void *address, size_t items, size_t size)
 
void * tdefl_compress_mem_to_heap (const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags)
 
size_t tdefl_compress_mem_to_mem (void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t src_buf_len, int flags)
 
void * tdefl_write_image_to_png_file_in_memory_ex (const void *pImage, int w, int h, int num_chans, size_t *pLen_out, mz_uint level, mz_bool flip)
 
void * tdefl_write_image_to_png_file_in_memory (const void *pImage, int w, int h, int num_chans, size_t *pLen_out)
 
mz_bool tdefl_compress_mem_to_output (const void *pBuf, size_t buf_len, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags)
 
tdefl_status tdefl_init (tdefl_compressor *d, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags)
 
tdefl_status tdefl_compress (tdefl_compressor *d, const void *pIn_buf, size_t *pIn_buf_size, void *pOut_buf, size_t *pOut_buf_size, tdefl_flush flush)
 
tdefl_status tdefl_compress_buffer (tdefl_compressor *d, const void *pIn_buf, size_t in_buf_size, tdefl_flush flush)
 
tdefl_status tdefl_get_prev_return_status (tdefl_compressor *d)
 
mz_uint32 tdefl_get_adler32 (tdefl_compressor *d)
 
mz_uint tdefl_create_comp_flags_from_zip_params (int level, int window_bits, int strategy)
 
tdefl_compressortdefl_compressor_alloc ()
 
void tdefl_compressor_free (tdefl_compressor *pComp)
 
void * tinfl_decompress_mem_to_heap (const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags)
 
size_t tinfl_decompress_mem_to_mem (void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t src_buf_len, int flags)
 
int tinfl_decompress_mem_to_callback (const void *pIn_buf, size_t *pIn_buf_size, tinfl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags)
 
tinfl_decompressortinfl_decompressor_alloc ()
 
void tinfl_decompressor_free (tinfl_decompressor *pDecomp)
 
tinfl_status tinfl_decompress (tinfl_decompressor *r, const mz_uint8 *pIn_buf_next, size_t *pIn_buf_size, mz_uint8 *pOut_buf_start, mz_uint8 *pOut_buf_next, size_t *pOut_buf_size, const mz_uint32 decomp_flags)
 
mz_bool mz_zip_reader_init (mz_zip_archive *pZip, mz_uint64 size, mz_uint flags)
 
mz_bool mz_zip_reader_init_mem (mz_zip_archive *pZip, const void *pMem, size_t size, mz_uint flags)
 
mz_bool mz_zip_reader_init_file (mz_zip_archive *pZip, const char *pFilename, mz_uint32 flags)
 
mz_bool mz_zip_reader_init_file_v2 (mz_zip_archive *pZip, const char *pFilename, mz_uint flags, mz_uint64 file_start_ofs, mz_uint64 archive_size)
 
mz_bool mz_zip_reader_init_cfile (mz_zip_archive *pZip, FILE *pFile, mz_uint64 archive_size, mz_uint flags)
 
mz_bool mz_zip_reader_end (mz_zip_archive *pZip)
 
void mz_zip_zero_struct (mz_zip_archive *pZip)
 
mz_zip_mode mz_zip_get_mode (mz_zip_archive *pZip)
 
mz_zip_type mz_zip_get_type (mz_zip_archive *pZip)
 
mz_uint mz_zip_reader_get_num_files (mz_zip_archive *pZip)
 
mz_uint64 mz_zip_get_archive_size (mz_zip_archive *pZip)
 
mz_uint64 mz_zip_get_archive_file_start_offset (mz_zip_archive *pZip)
 
FILE * mz_zip_get_cfile (mz_zip_archive *pZip)
 
size_t mz_zip_read_archive_data (mz_zip_archive *pZip, mz_uint64 file_ofs, void *pBuf, size_t n)
 
int mz_zip_locate_file (mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags)
 
mz_bool mz_zip_locate_file_v2 (mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags, mz_uint32 *pIndex)
 
mz_zip_error mz_zip_set_last_error (mz_zip_archive *pZip, mz_zip_error err_num)
 
mz_zip_error mz_zip_peek_last_error (mz_zip_archive *pZip)
 
mz_zip_error mz_zip_clear_last_error (mz_zip_archive *pZip)
 
mz_zip_error mz_zip_get_last_error (mz_zip_archive *pZip)
 
const char * mz_zip_get_error_string (mz_zip_error mz_err)
 
mz_bool mz_zip_reader_is_file_a_directory (mz_zip_archive *pZip, mz_uint file_index)
 
mz_bool mz_zip_reader_is_file_encrypted (mz_zip_archive *pZip, mz_uint file_index)
 
mz_bool mz_zip_reader_is_file_supported (mz_zip_archive *pZip, mz_uint file_index)
 
mz_uint mz_zip_reader_get_filename (mz_zip_archive *pZip, mz_uint file_index, char *pFilename, mz_uint filename_buf_size)
 
int mz_zip_reader_locate_file (mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags)
 
mz_bool mz_zip_reader_locate_file_v2 (mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags, mz_uint32 *file_index)
 
mz_bool mz_zip_reader_file_stat (mz_zip_archive *pZip, mz_uint file_index, mz_zip_archive_file_stat *pStat)
 
mz_bool mz_zip_is_zip64 (mz_zip_archive *pZip)
 
size_t mz_zip_get_central_dir_size (mz_zip_archive *pZip)
 
mz_bool mz_zip_reader_extract_to_mem_no_alloc (mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags, void *pUser_read_buf, size_t user_read_buf_size)
 
mz_bool mz_zip_reader_extract_file_to_mem_no_alloc (mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, void *pUser_read_buf, size_t user_read_buf_size)
 
mz_bool mz_zip_reader_extract_to_mem (mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags)
 
mz_bool mz_zip_reader_extract_file_to_mem (mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags)
 
void * mz_zip_reader_extract_to_heap (mz_zip_archive *pZip, mz_uint file_index, size_t *pSize, mz_uint flags)
 
void * mz_zip_reader_extract_file_to_heap (mz_zip_archive *pZip, const char *pFilename, size_t *pSize, mz_uint flags)
 
mz_bool mz_zip_reader_extract_to_callback (mz_zip_archive *pZip, mz_uint file_index, mz_file_write_func pCallback, void *pOpaque, mz_uint flags)
 
mz_bool mz_zip_reader_extract_file_to_callback (mz_zip_archive *pZip, const char *pFilename, mz_file_write_func pCallback, void *pOpaque, mz_uint flags)
 
mz_bool mz_zip_reader_extract_to_file (mz_zip_archive *pZip, mz_uint file_index, const char *pDst_filename, mz_uint flags)
 
mz_bool mz_zip_reader_extract_file_to_file (mz_zip_archive *pZip, const char *pArchive_filename, const char *pDst_filename, mz_uint flags)
 
mz_bool mz_zip_reader_extract_to_cfile (mz_zip_archive *pZip, mz_uint file_index, FILE *File, mz_uint flags)
 
mz_bool mz_zip_reader_extract_file_to_cfile (mz_zip_archive *pZip, const char *pArchive_filename, FILE *pFile, mz_uint flags)
 
mz_bool mz_zip_validate_file (mz_zip_archive *pZip, mz_uint file_index, mz_uint flags)
 
mz_bool mz_zip_validate_archive (mz_zip_archive *pZip, mz_uint flags)
 
mz_bool mz_zip_validate_mem_archive (const void *pMem, size_t size, mz_uint flags, mz_zip_error *pErr)
 
mz_bool mz_zip_validate_file_archive (const char *pFilename, mz_uint flags, mz_zip_error *pErr)
 
mz_bool mz_zip_end (mz_zip_archive *pZip)
 
mz_bool mz_zip_writer_init (mz_zip_archive *pZip, mz_uint64 existing_size)
 
mz_bool mz_zip_writer_init_v2 (mz_zip_archive *pZip, mz_uint64 existing_size, mz_uint flags)
 
mz_bool mz_zip_writer_init_heap (mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size)
 
mz_bool mz_zip_writer_init_heap_v2 (mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size, mz_uint flags)
 
mz_bool mz_zip_writer_init_file (mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_reserve_at_beginning)
 
mz_bool mz_zip_writer_init_file_v2 (mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_reserve_at_beginning, mz_uint flags)
 
mz_bool mz_zip_writer_init_cfile (mz_zip_archive *pZip, FILE *pFile, mz_uint flags)
 
mz_bool mz_zip_writer_init_from_reader (mz_zip_archive *pZip, const char *pFilename)
 
mz_bool mz_zip_writer_init_from_reader_v2 (mz_zip_archive *pZip, const char *pFilename, mz_uint flags)
 
mz_bool mz_zip_writer_add_mem (mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_and_flags)
 
mz_bool mz_zip_writer_add_mem_ex (mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, mz_uint64 uncomp_size, mz_uint32 uncomp_crc32)
 
mz_bool mz_zip_writer_add_mem_ex_v2 (mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, mz_uint64 uncomp_size, mz_uint32 uncomp_crc32, time_t *last_modified, const char *user_extra_data_local, mz_uint user_extra_data_local_len, const char *user_extra_data_central, mz_uint user_extra_data_central_len)
 
mz_bool mz_zip_writer_add_file (mz_zip_archive *pZip, const char *pArchive_name, const char *pSrc_filename, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags)
 
mz_bool mz_zip_writer_add_cfile (mz_zip_archive *pZip, const char *pArchive_name, FILE *pSrc_file, mz_uint64 size_to_add, const time_t *pFile_time, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, const char *user_extra_data_local, mz_uint user_extra_data_local_len, const char *user_extra_data_central, mz_uint user_extra_data_central_len)
 
mz_bool mz_zip_writer_add_from_zip_reader (mz_zip_archive *pZip, mz_zip_archive *pSource_zip, mz_uint src_file_index)
 
mz_bool mz_zip_writer_finalize_archive (mz_zip_archive *pZip)
 
mz_bool mz_zip_writer_finalize_heap_archive (mz_zip_archive *pZip, void **ppBuf, size_t *pSize)
 
mz_bool mz_zip_writer_end (mz_zip_archive *pZip)
 
mz_bool mz_zip_add_mem_to_archive_file_in_place (const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags)
 
mz_bool mz_zip_add_mem_to_archive_file_in_place_v2 (const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, mz_zip_error *pErr)
 
void * mz_zip_extract_archive_file_to_heap (const char *pZip_filename, const char *pArchive_name, size_t *pSize, mz_uint flags)
 
void * mz_zip_extract_archive_file_to_heap_v2 (const char *pZip_filename, const char *pArchive_name, const char *pComment, size_t *pSize, mz_uint flags, mz_zip_error *pErr)
 

Macro Definition Documentation

◆ adler32

#define adler32   mz_adler32

Definition at line 508 of file miniz.h.

◆ alloc_func

#define alloc_func   mz_alloc_func

Definition at line 489 of file miniz.h.

◆ compress

#define compress   mz_compress

Definition at line 499 of file miniz.h.

◆ compress2

#define compress2   mz_compress2

Definition at line 500 of file miniz.h.

◆ compressBound

#define compressBound   mz_compressBound

Definition at line 501 of file miniz.h.

◆ crc32

#define crc32   mz_crc32

Definition at line 507 of file miniz.h.

◆ deflate

#define deflate   mz_deflate

Definition at line 496 of file miniz.h.

◆ deflateBound

#define deflateBound   mz_deflateBound

Definition at line 498 of file miniz.h.

◆ deflateEnd

#define deflateEnd   mz_deflateEnd

Definition at line 497 of file miniz.h.

◆ deflateInit

#define deflateInit   mz_deflateInit

Definition at line 493 of file miniz.h.

◆ deflateInit2

#define deflateInit2   mz_deflateInit2

Definition at line 494 of file miniz.h.

◆ deflateReset

#define deflateReset   mz_deflateReset

Definition at line 495 of file miniz.h.

◆ free_func

#define free_func   mz_free_func

Definition at line 490 of file miniz.h.

◆ inflate

#define inflate   mz_inflate

Definition at line 504 of file miniz.h.

◆ inflateEnd

#define inflateEnd   mz_inflateEnd

Definition at line 505 of file miniz.h.

◆ inflateInit

#define inflateInit   mz_inflateInit

Definition at line 502 of file miniz.h.

◆ inflateInit2

#define inflateInit2   mz_inflateInit2

Definition at line 503 of file miniz.h.

◆ internal_state

#define internal_state   mz_internal_state

Definition at line 491 of file miniz.h.

◆ MAX_MEM_LEVEL

#define MAX_MEM_LEVEL   9

Definition at line 510 of file miniz.h.

◆ MAX_WBITS

#define MAX_WBITS   15

Definition at line 509 of file miniz.h.

◆ MINIZ_LITTLE_ENDIAN

#define MINIZ_LITTLE_ENDIAN   1

Definition at line 230 of file miniz.h.

◆ MZ_ADLER32_INIT

#define MZ_ADLER32_INIT   (1)

Definition at line 255 of file miniz.h.

◆ MZ_ASSERT

#define MZ_ASSERT (   x)    assert(x)

Definition at line 570 of file miniz.h.

◆ MZ_CLEAR_OBJ

#define MZ_CLEAR_OBJ (   obj)    memset(&(obj), 0, sizeof(obj))

Definition at line 584 of file miniz.h.

◆ MZ_CRC32_INIT

#define MZ_CRC32_INIT   (0)

Definition at line 259 of file miniz.h.

◆ MZ_DEFAULT_WINDOW_BITS

#define MZ_DEFAULT_WINDOW_BITS   15

Definition at line 330 of file miniz.h.

◆ MZ_DEFLATED

#define MZ_DEFLATED   8

Definition at line 274 of file miniz.h.

◆ MZ_FALSE

#define MZ_FALSE   false

Definition at line 543 of file miniz.h.

◆ MZ_FILE

#define MZ_FILE   FILE

Definition at line 557 of file miniz.h.

◆ MZ_FORCEINLINE

#define MZ_FORCEINLINE   inline

Definition at line 601 of file miniz.h.

◆ MZ_FREE

#define MZ_FREE (   x)    free(x)

Definition at line 578 of file miniz.h.

◆ MZ_MACRO_END

#define MZ_MACRO_END   while(0)

Definition at line 550 of file miniz.h.

◆ MZ_MALLOC

#define MZ_MALLOC (   x)    malloc(x)

Definition at line 577 of file miniz.h.

◆ MZ_MAX

#define MZ_MAX (   a,
 
)    (((a) > (b)) ? (a) : (b))

Definition at line 582 of file miniz.h.

◆ MZ_MIN

#define MZ_MIN (   a,
 
)    (((a) < (b)) ? (a) : (b))

Definition at line 583 of file miniz.h.

◆ MZ_READ_LE16

#define MZ_READ_LE16 (   p)    ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))

Definition at line 590 of file miniz.h.

◆ MZ_READ_LE32

#define MZ_READ_LE32 (   p)    ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))

Definition at line 591 of file miniz.h.

◆ MZ_READ_LE64

#define MZ_READ_LE64 (   p)    (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))

Definition at line 594 of file miniz.h.

◆ MZ_REALLOC

#define MZ_REALLOC (   p,
 
)    realloc(p, x)

Definition at line 579 of file miniz.h.

◆ MZ_TIME_T

#define MZ_TIME_T   time_t

Definition at line 567 of file miniz.h.

◆ MZ_TRUE

#define MZ_TRUE   true

Definition at line 544 of file miniz.h.

◆ MZ_UINT16_MAX

#define MZ_UINT16_MAX   (0xFFFFU)

Definition at line 612 of file miniz.h.

◆ MZ_UINT32_MAX

#define MZ_UINT32_MAX   (0xFFFFFFFFU)

Definition at line 613 of file miniz.h.

◆ MZ_VER_MAJOR

#define MZ_VER_MAJOR   9

Definition at line 287 of file miniz.h.

◆ MZ_VER_MINOR

#define MZ_VER_MINOR   1

Definition at line 288 of file miniz.h.

◆ MZ_VER_REVISION

#define MZ_VER_REVISION   15

Definition at line 289 of file miniz.h.

◆ MZ_VER_SUBREVISION

#define MZ_VER_SUBREVISION   0

Definition at line 290 of file miniz.h.

◆ MZ_VERNUM

#define MZ_VERNUM   0x91F0

Definition at line 286 of file miniz.h.

◆ MZ_VERSION

#define MZ_VERSION   "9.1.15"

Definition at line 285 of file miniz.h.

◆ TDEFL_LESS_MEMORY

#define TDEFL_LESS_MEMORY   0

Definition at line 627 of file miniz.h.

◆ TINFL_BITBUF_SIZE

#define TINFL_BITBUF_SIZE   (32)

Definition at line 938 of file miniz.h.

◆ TINFL_DECOMPRESS_MEM_TO_MEM_FAILED

#define TINFL_DECOMPRESS_MEM_TO_MEM_FAILED   ((size_t)(-1))

Definition at line 843 of file miniz.h.

◆ tinfl_get_adler32

#define tinfl_get_adler32 (   r)    (r)->m_check_adler32

Definition at line 906 of file miniz.h.

◆ tinfl_init

#define tinfl_init (   r)
Value:
do \
{ \
(r)->m_state = 0; \
} \
MZ_MACRO_END
static int8_t r
Definition: irep_hash.h:60

Definition at line 900 of file miniz.h.

◆ TINFL_LZ_DICT_SIZE

#define TINFL_LZ_DICT_SIZE   32768

Definition at line 862 of file miniz.h.

◆ uncompress

#define uncompress   mz_uncompress

Definition at line 506 of file miniz.h.

◆ Z_BEST_COMPRESSION

#define Z_BEST_COMPRESSION   MZ_BEST_COMPRESSION

Definition at line 480 of file miniz.h.

◆ Z_BEST_SPEED

#define Z_BEST_SPEED   MZ_BEST_SPEED

Definition at line 479 of file miniz.h.

◆ Z_BLOCK

#define Z_BLOCK   MZ_BLOCK

Definition at line 467 of file miniz.h.

◆ Z_BUF_ERROR

#define Z_BUF_ERROR   MZ_BUF_ERROR

Definition at line 475 of file miniz.h.

◆ Z_DATA_ERROR

#define Z_DATA_ERROR   MZ_DATA_ERROR

Definition at line 473 of file miniz.h.

◆ Z_DEFAULT_COMPRESSION

#define Z_DEFAULT_COMPRESSION   MZ_DEFAULT_COMPRESSION

Definition at line 481 of file miniz.h.

◆ Z_DEFAULT_STRATEGY

#define Z_DEFAULT_STRATEGY   MZ_DEFAULT_STRATEGY

Definition at line 482 of file miniz.h.

◆ Z_DEFAULT_WINDOW_BITS

#define Z_DEFAULT_WINDOW_BITS   MZ_DEFAULT_WINDOW_BITS

Definition at line 488 of file miniz.h.

◆ Z_DEFLATED

#define Z_DEFLATED   MZ_DEFLATED

Definition at line 487 of file miniz.h.

◆ Z_ERRNO

#define Z_ERRNO   MZ_ERRNO

Definition at line 471 of file miniz.h.

◆ Z_FILTERED

#define Z_FILTERED   MZ_FILTERED

Definition at line 483 of file miniz.h.

◆ Z_FINISH

#define Z_FINISH   MZ_FINISH

Definition at line 466 of file miniz.h.

◆ Z_FIXED

#define Z_FIXED   MZ_FIXED

Definition at line 486 of file miniz.h.

◆ Z_FULL_FLUSH

#define Z_FULL_FLUSH   MZ_FULL_FLUSH

Definition at line 465 of file miniz.h.

◆ Z_HUFFMAN_ONLY

#define Z_HUFFMAN_ONLY   MZ_HUFFMAN_ONLY

Definition at line 484 of file miniz.h.

◆ Z_MEM_ERROR

#define Z_MEM_ERROR   MZ_MEM_ERROR

Definition at line 474 of file miniz.h.

◆ Z_NEED_DICT

#define Z_NEED_DICT   MZ_NEED_DICT

Definition at line 470 of file miniz.h.

◆ Z_NO_COMPRESSION

#define Z_NO_COMPRESSION   MZ_NO_COMPRESSION

Definition at line 478 of file miniz.h.

◆ Z_NO_FLUSH

#define Z_NO_FLUSH   MZ_NO_FLUSH

Definition at line 462 of file miniz.h.

◆ Z_NULL

#define Z_NULL   0

Definition at line 461 of file miniz.h.

◆ Z_OK

#define Z_OK   MZ_OK

Definition at line 468 of file miniz.h.

◆ Z_PARAM_ERROR

#define Z_PARAM_ERROR   MZ_PARAM_ERROR

Definition at line 477 of file miniz.h.

◆ Z_PARTIAL_FLUSH

#define Z_PARTIAL_FLUSH   MZ_PARTIAL_FLUSH

Definition at line 463 of file miniz.h.

◆ Z_RLE

#define Z_RLE   MZ_RLE

Definition at line 485 of file miniz.h.

◆ z_stream

#define z_stream   mz_stream

Definition at line 492 of file miniz.h.

◆ Z_STREAM_END

#define Z_STREAM_END   MZ_STREAM_END

Definition at line 469 of file miniz.h.

◆ Z_STREAM_ERROR

#define Z_STREAM_ERROR   MZ_STREAM_ERROR

Definition at line 472 of file miniz.h.

◆ Z_SYNC_FLUSH

#define Z_SYNC_FLUSH   MZ_SYNC_FLUSH

Definition at line 464 of file miniz.h.

◆ Z_VERSION_ERROR

#define Z_VERSION_ERROR   MZ_VERSION_ERROR

Definition at line 476 of file miniz.h.

◆ zError

#define zError   mz_error

Definition at line 511 of file miniz.h.

◆ ZLIB_VER_MAJOR

#define ZLIB_VER_MAJOR   MZ_VER_MAJOR

Definition at line 514 of file miniz.h.

◆ ZLIB_VER_MINOR

#define ZLIB_VER_MINOR   MZ_VER_MINOR

Definition at line 515 of file miniz.h.

◆ ZLIB_VER_REVISION

#define ZLIB_VER_REVISION   MZ_VER_REVISION

Definition at line 516 of file miniz.h.

◆ ZLIB_VER_SUBREVISION

#define ZLIB_VER_SUBREVISION   MZ_VER_SUBREVISION

Definition at line 517 of file miniz.h.

◆ ZLIB_VERNUM

#define ZLIB_VERNUM   MZ_VERNUM

Definition at line 513 of file miniz.h.

◆ ZLIB_VERSION

#define ZLIB_VERSION   MZ_VERSION

Definition at line 512 of file miniz.h.

◆ zlib_version

#define zlib_version   mz_version()

Definition at line 519 of file miniz.h.

◆ zlibVersion

#define zlibVersion   mz_version

Definition at line 518 of file miniz.h.

Typedef Documentation

◆ Byte

typedef unsigned char Byte

Definition at line 450 of file miniz.h.

◆ Bytef

typedef Byte Bytef

Definition at line 453 of file miniz.h.

◆ charf

typedef char charf

Definition at line 455 of file miniz.h.

◆ intf

typedef int intf

Definition at line 456 of file miniz.h.

◆ mz_alloc_func

typedef void*(* mz_alloc_func) (void *opaque, size_t items, size_t size)

Definition at line 280 of file miniz.h.

◆ mz_bool

typedef bool mz_bool

Definition at line 541 of file miniz.h.

◆ mz_file_read_func

typedef size_t(* mz_file_read_func) (void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n)

Definition at line 1027 of file miniz.h.

◆ mz_file_write_func

typedef size_t(* mz_file_write_func) (void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n)

Definition at line 1028 of file miniz.h.

◆ mz_free_func

typedef void(* mz_free_func) (void *opaque, void *address)

Definition at line 281 of file miniz.h.

◆ mz_int16

typedef int16_t mz_int16

Definition at line 535 of file miniz.h.

◆ mz_int64

typedef int64_t mz_int64

Definition at line 539 of file miniz.h.

◆ mz_realloc_func

typedef void*(* mz_realloc_func) (void *opaque, void *address, size_t items, size_t size)

Definition at line 282 of file miniz.h.

◆ mz_stream

typedef struct mz_stream_s mz_stream

◆ mz_streamp

Definition at line 357 of file miniz.h.

◆ mz_uint

typedef unsigned int mz_uint

Definition at line 538 of file miniz.h.

◆ mz_uint16

typedef uint16_t mz_uint16

Definition at line 536 of file miniz.h.

◆ mz_uint32

typedef uint32_t mz_uint32

Definition at line 537 of file miniz.h.

◆ mz_uint64

typedef uint64_t mz_uint64

Definition at line 540 of file miniz.h.

◆ mz_uint8

typedef uint8_t mz_uint8

Definition at line 534 of file miniz.h.

◆ mz_ulong

typedef unsigned long mz_ulong

Definition at line 250 of file miniz.h.

◆ mz_zip_internal_state

Definition at line 1028 of file miniz.h.

◆ tdefl_put_buf_func_ptr

typedef mz_bool(* tdefl_put_buf_func_ptr) (const void *pBuf, int len, void *pUser)

Definition at line 688 of file miniz.h.

◆ tinfl_bit_buf_t

Definition at line 937 of file miniz.h.

◆ tinfl_decompressor

Definition at line 849 of file miniz.h.

◆ tinfl_put_buf_func_ptr

typedef int(* tinfl_put_buf_func_ptr) (const void *pBuf, int len, void *pUser)

Definition at line 848 of file miniz.h.

◆ uInt

typedef unsigned int uInt

Definition at line 451 of file miniz.h.

◆ uIntf

typedef uInt uIntf

Definition at line 454 of file miniz.h.

◆ uLong

typedef mz_ulong uLong

Definition at line 452 of file miniz.h.

◆ uLongf

typedef uLong uLongf

Definition at line 458 of file miniz.h.

◆ voidp

typedef void* voidp

Definition at line 459 of file miniz.h.

◆ voidpc

typedef void* const voidpc

Definition at line 460 of file miniz.h.

◆ voidpf

typedef void* voidpf

Definition at line 457 of file miniz.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MZ_DEFAULT_STRATEGY 
MZ_FILTERED 
MZ_HUFFMAN_ONLY 
MZ_RLE 
MZ_FIXED 

Definition at line 264 of file miniz.h.

◆ anonymous enum

anonymous enum
Enumerator
MZ_NO_FLUSH 
MZ_PARTIAL_FLUSH 
MZ_SYNC_FLUSH 
MZ_FULL_FLUSH 
MZ_FINISH 
MZ_BLOCK 

Definition at line 293 of file miniz.h.

◆ anonymous enum

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 304 of file miniz.h.

◆ anonymous enum

anonymous enum
Enumerator
MZ_NO_COMPRESSION 
MZ_BEST_SPEED 
MZ_BEST_COMPRESSION 
MZ_UBER_COMPRESSION 
MZ_DEFAULT_LEVEL 
MZ_DEFAULT_COMPRESSION 

Definition at line 319 of file miniz.h.

◆ anonymous enum

anonymous enum
Enumerator
TDEFL_HUFFMAN_ONLY 
TDEFL_DEFAULT_MAX_PROBES 
TDEFL_MAX_PROBES_MASK 

Definition at line 631 of file miniz.h.

◆ anonymous enum

anonymous enum
Enumerator
TDEFL_WRITE_ZLIB_HEADER 
TDEFL_COMPUTE_ADLER32 
TDEFL_GREEDY_PARSING_FLAG 
TDEFL_NONDETERMINISTIC_PARSING_FLAG 
TDEFL_RLE_MATCHES 
TDEFL_FILTER_MATCHES 
TDEFL_FORCE_ALL_STATIC_BLOCKS 
TDEFL_FORCE_ALL_RAW_BLOCKS 

Definition at line 647 of file miniz.h.

◆ anonymous enum

anonymous enum
Enumerator
TDEFL_MAX_HUFF_TABLES 
TDEFL_MAX_HUFF_SYMBOLS_0 
TDEFL_MAX_HUFF_SYMBOLS_1 
TDEFL_MAX_HUFF_SYMBOLS_2 
TDEFL_LZ_DICT_SIZE 
TDEFL_LZ_DICT_SIZE_MASK 
TDEFL_MIN_MATCH_LEN 
TDEFL_MAX_MATCH_LEN 

Definition at line 693 of file miniz.h.

◆ anonymous enum

anonymous enum
Enumerator
TDEFL_LZ_CODE_BUF_SIZE 
TDEFL_OUT_BUF_SIZE 
TDEFL_MAX_HUFF_SYMBOLS 
TDEFL_LZ_HASH_BITS 
TDEFL_LEVEL1_HASH_SIZE_MASK 
TDEFL_LZ_HASH_SHIFT 
TDEFL_LZ_HASH_SIZE 

Definition at line 718 of file miniz.h.

◆ anonymous enum

anonymous enum
Enumerator
TINFL_FLAG_PARSE_ZLIB_HEADER 
TINFL_FLAG_HAS_MORE_INPUT 
TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF 
TINFL_FLAG_COMPUTE_ADLER32 

Definition at line 823 of file miniz.h.

◆ anonymous enum

anonymous enum
Enumerator
TINFL_MAX_HUFF_TABLES 
TINFL_MAX_HUFF_SYMBOLS_0 
TINFL_MAX_HUFF_SYMBOLS_1 
TINFL_MAX_HUFF_SYMBOLS_2 
TINFL_FAST_LOOKUP_BITS 
TINFL_FAST_LOOKUP_SIZE 

Definition at line 913 of file miniz.h.

◆ anonymous enum

anonymous enum
Enumerator
MZ_ZIP_MAX_IO_BUF_SIZE 
MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE 
MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE 

Definition at line 963 of file miniz.h.

◆ mz_zip_error

Enumerator
MZ_ZIP_NO_ERROR 
MZ_ZIP_UNDEFINED_ERROR 
MZ_ZIP_TOO_MANY_FILES 
MZ_ZIP_FILE_TOO_LARGE 
MZ_ZIP_UNSUPPORTED_METHOD 
MZ_ZIP_UNSUPPORTED_ENCRYPTION 
MZ_ZIP_UNSUPPORTED_FEATURE 
MZ_ZIP_FAILED_FINDING_CENTRAL_DIR 
MZ_ZIP_NOT_AN_ARCHIVE 
MZ_ZIP_INVALID_HEADER_OR_CORRUPTED 
MZ_ZIP_UNSUPPORTED_MULTIDISK 
MZ_ZIP_DECOMPRESSION_FAILED 
MZ_ZIP_COMPRESSION_FAILED 
MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE 
MZ_ZIP_CRC_CHECK_FAILED 
MZ_ZIP_UNSUPPORTED_CDIR_SIZE 
MZ_ZIP_ALLOC_FAILED 
MZ_ZIP_FILE_OPEN_FAILED 
MZ_ZIP_FILE_CREATE_FAILED 
MZ_ZIP_FILE_WRITE_FAILED 
MZ_ZIP_FILE_READ_FAILED 
MZ_ZIP_FILE_CLOSE_FAILED 
MZ_ZIP_FILE_SEEK_FAILED 
MZ_ZIP_FILE_STAT_FAILED 
MZ_ZIP_INVALID_PARAMETER 
MZ_ZIP_INVALID_FILENAME 
MZ_ZIP_BUF_TOO_SMALL 
MZ_ZIP_INTERNAL_ERROR 
MZ_ZIP_FILE_NOT_FOUND 
MZ_ZIP_ARCHIVE_TOO_LARGE 
MZ_ZIP_VALIDATION_FAILED 
MZ_ZIP_WRITE_CALLBACK_FAILED 
MZ_ZIP_TOTAL_ERRORS 

Definition at line 1066 of file miniz.h.

◆ mz_zip_flags

Enumerator
MZ_ZIP_FLAG_CASE_SENSITIVE 
MZ_ZIP_FLAG_IGNORE_PATH 
MZ_ZIP_FLAG_COMPRESSED_DATA 
MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY 
MZ_ZIP_FLAG_VALIDATE_LOCATE_FILE_FLAG 
MZ_ZIP_FLAG_VALIDATE_HEADERS_ONLY 
MZ_ZIP_FLAG_WRITE_ZIP64 
MZ_ZIP_FLAG_WRITE_ALLOW_READING 
MZ_ZIP_FLAG_UTF8_FILENAME 

Definition at line 1041 of file miniz.h.

◆ mz_zip_mode

Enumerator
MZ_ZIP_MODE_INVALID 
MZ_ZIP_MODE_READING 
MZ_ZIP_MODE_WRITING 
MZ_ZIP_MODE_WRITING_HAS_BEEN_FINALIZED 

Definition at line 1033 of file miniz.h.

◆ mz_zip_type

Enumerator
MZ_ZIP_TYPE_INVALID 
MZ_ZIP_TYPE_USER 
MZ_ZIP_TYPE_MEMORY 
MZ_ZIP_TYPE_HEAP 
MZ_ZIP_TYPE_FILE 
MZ_ZIP_TYPE_CFILE 
MZ_ZIP_TOTAL_TYPES 

Definition at line 1054 of file miniz.h.

◆ tdefl_flush

Enumerator
TDEFL_NO_FLUSH 
TDEFL_SYNC_FLUSH 
TDEFL_FULL_FLUSH 
TDEFL_FINISH 

Definition at line 740 of file miniz.h.

◆ tdefl_status

Enumerator
TDEFL_STATUS_BAD_PARAM 
TDEFL_STATUS_PUT_BUF_FAILED 
TDEFL_STATUS_OKAY 
TDEFL_STATUS_DONE 

Definition at line 731 of file miniz.h.

◆ tinfl_status

Enumerator
TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS 
TINFL_STATUS_BAD_PARAM 
TINFL_STATUS_ADLER32_MISMATCH 
TINFL_STATUS_FAILED 
TINFL_STATUS_DONE 
TINFL_STATUS_NEEDS_MORE_INPUT 
TINFL_STATUS_HAS_MORE_OUTPUT 

Definition at line 865 of file miniz.h.

Function Documentation

◆ miniz_def_alloc_func()

void* miniz_def_alloc_func ( void *  opaque,
size_t  items,
size_t  size 
)

Definition at line 180 of file miniz.cpp.

◆ miniz_def_free_func()

void miniz_def_free_func ( void *  opaque,
void *  address 
)

Definition at line 185 of file miniz.cpp.

◆ miniz_def_realloc_func()

void* miniz_def_realloc_func ( void *  opaque,
void *  address,
size_t  items,
size_t  size 
)

Definition at line 190 of file miniz.cpp.

◆ mz_adler32()

mz_ulong mz_adler32 ( mz_ulong  adler,
const unsigned char *  ptr,
size_t  buf_len 
)

Definition at line 57 of file miniz.cpp.

◆ mz_compress()

int mz_compress ( unsigned char *  pDest,
mz_ulong pDest_len,
const unsigned char *  pSource,
mz_ulong  source_len 
)

Definition at line 358 of file miniz.cpp.

◆ mz_compress2()

int mz_compress2 ( unsigned char *  pDest,
mz_ulong pDest_len,
const unsigned char *  pSource,
mz_ulong  source_len,
int  level 
)

Definition at line 328 of file miniz.cpp.

◆ mz_compressBound()

mz_ulong mz_compressBound ( mz_ulong  source_len)

Definition at line 363 of file miniz.cpp.

◆ mz_crc32()

mz_ulong mz_crc32 ( mz_ulong  crc,
const unsigned char *  ptr,
size_t  buf_len 
)

◆ mz_deflate()

int mz_deflate ( mz_streamp  pStream,
int  flush 
)

Definition at line 251 of file miniz.cpp.

◆ mz_deflateBound()

mz_ulong mz_deflateBound ( mz_streamp  pStream,
mz_ulong  source_len 
)

Definition at line 321 of file miniz.cpp.

◆ mz_deflateEnd()

int mz_deflateEnd ( mz_streamp  pStream)

Definition at line 309 of file miniz.cpp.

◆ mz_deflateInit()

int mz_deflateInit ( mz_streamp  pStream,
int  level 
)

Definition at line 201 of file miniz.cpp.

◆ mz_deflateInit2()

int mz_deflateInit2 ( mz_streamp  pStream,
int  level,
int  method,
int  window_bits,
int  mem_level,
int  strategy 
)

Definition at line 206 of file miniz.cpp.

◆ mz_deflateReset()

int mz_deflateReset ( mz_streamp  pStream)

Definition at line 242 of file miniz.cpp.

◆ mz_error()

const char* mz_error ( int  err)

Definition at line 572 of file miniz.cpp.

◆ mz_free()

void mz_free ( void *  p)

Definition at line 173 of file miniz.cpp.

◆ mz_inflate()

int mz_inflate ( mz_streamp  pStream,
int  flush 
)

Definition at line 418 of file miniz.cpp.

◆ mz_inflateEnd()

int mz_inflateEnd ( mz_streamp  pStream)

Definition at line 530 of file miniz.cpp.

◆ mz_inflateInit()

int mz_inflateInit ( mz_streamp  pStream)

Definition at line 413 of file miniz.cpp.

◆ mz_inflateInit2()

int mz_inflateInit2 ( mz_streamp  pStream,
int  window_bits 
)

Definition at line 377 of file miniz.cpp.

◆ mz_uncompress()

int mz_uncompress ( unsigned char *  pDest,
mz_ulong pDest_len,
const unsigned char *  pSource,
mz_ulong  source_len 
)

Definition at line 542 of file miniz.cpp.

◆ mz_version()

const char* mz_version ( void  )

Definition at line 196 of file miniz.cpp.

◆ mz_zip_add_mem_to_archive_file_in_place()

mz_bool mz_zip_add_mem_to_archive_file_in_place ( const char *  pZip_filename,
const char *  pArchive_name,
const void *  pBuf,
size_t  buf_size,
const void *  pComment,
mz_uint16  comment_size,
mz_uint  level_and_flags 
)

Definition at line 6843 of file miniz.cpp.

◆ mz_zip_add_mem_to_archive_file_in_place_v2()

mz_bool mz_zip_add_mem_to_archive_file_in_place_v2 ( const char *  pZip_filename,
const char *  pArchive_name,
const void *  pBuf,
size_t  buf_size,
const void *  pComment,
mz_uint16  comment_size,
mz_uint  level_and_flags,
mz_zip_error pErr 
)

Definition at line 6848 of file miniz.cpp.

◆ mz_zip_clear_last_error()

mz_zip_error mz_zip_clear_last_error ( mz_zip_archive pZip)

Definition at line 7022 of file miniz.cpp.

◆ mz_zip_end()

mz_bool mz_zip_end ( mz_zip_archive pZip)

Definition at line 7193 of file miniz.cpp.

◆ mz_zip_extract_archive_file_to_heap()

void* mz_zip_extract_archive_file_to_heap ( const char *  pZip_filename,
const char *  pArchive_name,
size_t *  pSize,
mz_uint  flags 
)

Definition at line 6980 of file miniz.cpp.

◆ mz_zip_extract_archive_file_to_heap_v2()

void* mz_zip_extract_archive_file_to_heap_v2 ( const char *  pZip_filename,
const char *  pArchive_name,
const char *  pComment,
size_t *  pSize,
mz_uint  flags,
mz_zip_error pErr 
)

Definition at line 6941 of file miniz.cpp.

◆ mz_zip_get_archive_file_start_offset()

mz_uint64 mz_zip_get_archive_file_start_offset ( mz_zip_archive pZip)

Definition at line 7145 of file miniz.cpp.

◆ mz_zip_get_archive_size()

mz_uint64 mz_zip_get_archive_size ( mz_zip_archive pZip)

Definition at line 7138 of file miniz.cpp.

◆ mz_zip_get_central_dir_size()

size_t mz_zip_get_central_dir_size ( mz_zip_archive pZip)

Definition at line 7125 of file miniz.cpp.

◆ mz_zip_get_cfile()

FILE* mz_zip_get_cfile ( mz_zip_archive pZip)

Definition at line 7152 of file miniz.cpp.

◆ mz_zip_get_error_string()

const char* mz_zip_get_error_string ( mz_zip_error  mz_err)

Definition at line 7040 of file miniz.cpp.

◆ mz_zip_get_last_error()

mz_zip_error mz_zip_get_last_error ( mz_zip_archive pZip)

Definition at line 7027 of file miniz.cpp.

◆ mz_zip_get_mode()

mz_zip_mode mz_zip_get_mode ( mz_zip_archive pZip)

Definition at line 6991 of file miniz.cpp.

◆ mz_zip_get_type()

mz_zip_type mz_zip_get_type ( mz_zip_archive pZip)

Definition at line 6996 of file miniz.cpp.

◆ mz_zip_is_zip64()

mz_bool mz_zip_is_zip64 ( mz_zip_archive pZip)

Definition at line 7117 of file miniz.cpp.

◆ mz_zip_locate_file()

int mz_zip_locate_file ( mz_zip_archive pZip,
const char *  pName,
const char *  pComment,
mz_uint  flags 
)

◆ mz_zip_locate_file_v2()

mz_bool mz_zip_locate_file_v2 ( mz_zip_archive pZip,
const char *  pName,
const char *  pComment,
mz_uint  flags,
mz_uint32 pIndex 
)

◆ mz_zip_peek_last_error()

mz_zip_error mz_zip_peek_last_error ( mz_zip_archive pZip)

Definition at line 7014 of file miniz.cpp.

◆ mz_zip_read_archive_data()

size_t mz_zip_read_archive_data ( mz_zip_archive pZip,
mz_uint64  file_ofs,
void *  pBuf,
size_t  n 
)

Definition at line 7159 of file miniz.cpp.

◆ mz_zip_reader_end()

mz_bool mz_zip_reader_end ( mz_zip_archive pZip)

Definition at line 3742 of file miniz.cpp.

◆ mz_zip_reader_extract_file_to_callback()

mz_bool mz_zip_reader_extract_file_to_callback ( mz_zip_archive pZip,
const char *  pFilename,
mz_file_write_func  pCallback,
void *  pOpaque,
mz_uint  flags 
)

Definition at line 4678 of file miniz.cpp.

◆ mz_zip_reader_extract_file_to_cfile()

mz_bool mz_zip_reader_extract_file_to_cfile ( mz_zip_archive pZip,
const char *  pArchive_filename,
FILE *  pFile,
mz_uint  flags 
)

Definition at line 4751 of file miniz.cpp.

◆ mz_zip_reader_extract_file_to_file()

mz_bool mz_zip_reader_extract_file_to_file ( mz_zip_archive pZip,
const char *  pArchive_filename,
const char *  pDst_filename,
mz_uint  flags 
)

Definition at line 4729 of file miniz.cpp.

◆ mz_zip_reader_extract_file_to_heap()

void* mz_zip_reader_extract_file_to_heap ( mz_zip_archive pZip,
const char *  pFilename,
size_t *  pSize,
mz_uint  flags 
)

Definition at line 4468 of file miniz.cpp.

◆ mz_zip_reader_extract_file_to_mem()

mz_bool mz_zip_reader_extract_file_to_mem ( mz_zip_archive pZip,
const char *  pFilename,
void *  pBuf,
size_t  buf_size,
mz_uint  flags 
)

Definition at line 4421 of file miniz.cpp.

◆ mz_zip_reader_extract_file_to_mem_no_alloc()

mz_bool mz_zip_reader_extract_file_to_mem_no_alloc ( mz_zip_archive pZip,
const char *  pFilename,
void *  pBuf,
size_t  buf_size,
mz_uint  flags,
void *  pUser_read_buf,
size_t  user_read_buf_size 
)

Definition at line 4408 of file miniz.cpp.

◆ mz_zip_reader_extract_to_callback()

mz_bool mz_zip_reader_extract_to_callback ( mz_zip_archive pZip,
mz_uint  file_index,
mz_file_write_func  pCallback,
void *  pOpaque,
mz_uint  flags 
)

Definition at line 4480 of file miniz.cpp.

◆ mz_zip_reader_extract_to_cfile()

mz_bool mz_zip_reader_extract_to_cfile ( mz_zip_archive pZip,
mz_uint  file_index,
FILE *  File,
mz_uint  flags 
)

Definition at line 4738 of file miniz.cpp.

◆ mz_zip_reader_extract_to_file()

mz_bool mz_zip_reader_extract_to_file ( mz_zip_archive pZip,
mz_uint  file_index,
const char *  pDst_filename,
mz_uint  flags 
)

Definition at line 4695 of file miniz.cpp.

◆ mz_zip_reader_extract_to_heap()

void* mz_zip_reader_extract_to_heap ( mz_zip_archive pZip,
mz_uint  file_index,
size_t *  pSize,
mz_uint  flags 
)

Definition at line 4426 of file miniz.cpp.

◆ mz_zip_reader_extract_to_mem()

mz_bool mz_zip_reader_extract_to_mem ( mz_zip_archive pZip,
mz_uint  file_index,
void *  pBuf,
size_t  buf_size,
mz_uint  flags 
)

Definition at line 4416 of file miniz.cpp.

◆ mz_zip_reader_extract_to_mem_no_alloc()

mz_bool mz_zip_reader_extract_to_mem_no_alloc ( mz_zip_archive pZip,
mz_uint  file_index,
void *  pBuf,
size_t  buf_size,
mz_uint  flags,
void *  pUser_read_buf,
size_t  user_read_buf_size 
)

Definition at line 4265 of file miniz.cpp.

◆ mz_zip_reader_file_stat()

mz_bool mz_zip_reader_file_stat ( mz_zip_archive pZip,
mz_uint  file_index,
mz_zip_archive_file_stat pStat 
)

Definition at line 7188 of file miniz.cpp.

◆ mz_zip_reader_get_filename()

mz_uint mz_zip_reader_get_filename ( mz_zip_archive pZip,
mz_uint  file_index,
char *  pFilename,
mz_uint  filename_buf_size 
)

Definition at line 7167 of file miniz.cpp.

◆ mz_zip_reader_get_num_files()

mz_uint mz_zip_reader_get_num_files ( mz_zip_archive pZip)

Definition at line 7133 of file miniz.cpp.

◆ mz_zip_reader_init()

mz_bool mz_zip_reader_init ( mz_zip_archive pZip,
mz_uint64  size,
mz_uint  flags 
)

Definition at line 3746 of file miniz.cpp.

◆ mz_zip_reader_init_cfile()

mz_bool mz_zip_reader_init_cfile ( mz_zip_archive pZip,
FILE *  pFile,
mz_uint64  archive_size,
mz_uint  flags 
)

Definition at line 3875 of file miniz.cpp.

◆ mz_zip_reader_init_file()

mz_bool mz_zip_reader_init_file ( mz_zip_archive pZip,
const char *  pFilename,
mz_uint32  flags 
)

Definition at line 3821 of file miniz.cpp.

◆ mz_zip_reader_init_file_v2()

mz_bool mz_zip_reader_init_file_v2 ( mz_zip_archive pZip,
const char *  pFilename,
mz_uint  flags,
mz_uint64  file_start_ofs,
mz_uint64  archive_size 
)

Definition at line 3826 of file miniz.cpp.

◆ mz_zip_reader_init_mem()

mz_bool mz_zip_reader_init_mem ( mz_zip_archive pZip,
const void *  pMem,
size_t  size,
mz_uint  flags 
)

Definition at line 3774 of file miniz.cpp.

◆ mz_zip_reader_is_file_a_directory()

mz_bool mz_zip_reader_is_file_a_directory ( mz_zip_archive pZip,
mz_uint  file_index 
)

Definition at line 3974 of file miniz.cpp.

◆ mz_zip_reader_is_file_encrypted()

mz_bool mz_zip_reader_is_file_encrypted ( mz_zip_archive pZip,
mz_uint  file_index 
)

Definition at line 3924 of file miniz.cpp.

◆ mz_zip_reader_is_file_supported()

mz_bool mz_zip_reader_is_file_supported ( mz_zip_archive pZip,
mz_uint  file_index 
)

Definition at line 3938 of file miniz.cpp.

◆ mz_zip_reader_locate_file()

int mz_zip_reader_locate_file ( mz_zip_archive pZip,
const char *  pName,
const char *  pComment,
mz_uint  flags 
)

Definition at line 4191 of file miniz.cpp.

◆ mz_zip_reader_locate_file_v2()

mz_bool mz_zip_reader_locate_file_v2 ( mz_zip_archive pZip,
const char *  pName,
const char *  pComment,
mz_uint  flags,
mz_uint32 file_index 
)

Definition at line 4200 of file miniz.cpp.

◆ mz_zip_set_last_error()

mz_zip_error mz_zip_set_last_error ( mz_zip_archive pZip,
mz_zip_error  err_num 
)

Definition at line 7001 of file miniz.cpp.

◆ mz_zip_validate_archive()

mz_bool mz_zip_validate_archive ( mz_zip_archive pZip,
mz_uint  flags 
)

Definition at line 4972 of file miniz.cpp.

◆ mz_zip_validate_file()

mz_bool mz_zip_validate_file ( mz_zip_archive pZip,
mz_uint  file_index,
mz_uint  flags 
)

Definition at line 4769 of file miniz.cpp.

◆ mz_zip_validate_file_archive()

mz_bool mz_zip_validate_file_archive ( const char *  pFilename,
mz_uint  flags,
mz_zip_error pErr 
)

Definition at line 5067 of file miniz.cpp.

◆ mz_zip_validate_mem_archive()

mz_bool mz_zip_validate_mem_archive ( const void *  pMem,
size_t  size,
mz_uint  flags,
mz_zip_error pErr 
)

Definition at line 5025 of file miniz.cpp.

◆ mz_zip_writer_add_cfile()

mz_bool mz_zip_writer_add_cfile ( mz_zip_archive pZip,
const char *  pArchive_name,
FILE *  pSrc_file,
mz_uint64  size_to_add,
const time_t *  pFile_time,
const void *  pComment,
mz_uint16  comment_size,
mz_uint  level_and_flags,
const char *  user_extra_data_local,
mz_uint  user_extra_data_local_len,
const char *  user_extra_data_central,
mz_uint  user_extra_data_central_len 
)

Definition at line 5961 of file miniz.cpp.

◆ mz_zip_writer_add_file()

mz_bool mz_zip_writer_add_file ( mz_zip_archive pZip,
const char *  pArchive_name,
const char *  pSrc_filename,
const void *  pComment,
mz_uint16  comment_size,
mz_uint  level_and_flags 
)

Definition at line 6253 of file miniz.cpp.

◆ mz_zip_writer_add_from_zip_reader()

mz_bool mz_zip_writer_add_from_zip_reader ( mz_zip_archive pZip,
mz_zip_archive pSource_zip,
mz_uint  src_file_index 
)

Definition at line 6364 of file miniz.cpp.

◆ mz_zip_writer_add_mem()

mz_bool mz_zip_writer_add_mem ( mz_zip_archive pZip,
const char *  pArchive_name,
const void *  pBuf,
size_t  buf_size,
mz_uint  level_and_flags 
)

Definition at line 5484 of file miniz.cpp.

◆ mz_zip_writer_add_mem_ex()

mz_bool mz_zip_writer_add_mem_ex ( mz_zip_archive pZip,
const char *  pArchive_name,
const void *  pBuf,
size_t  buf_size,
const void *  pComment,
mz_uint16  comment_size,
mz_uint  level_and_flags,
mz_uint64  uncomp_size,
mz_uint32  uncomp_crc32 
)

Definition at line 5670 of file miniz.cpp.

◆ mz_zip_writer_add_mem_ex_v2()

mz_bool mz_zip_writer_add_mem_ex_v2 ( mz_zip_archive pZip,
const char *  pArchive_name,
const void *  pBuf,
size_t  buf_size,
const void *  pComment,
mz_uint16  comment_size,
mz_uint  level_and_flags,
mz_uint64  uncomp_size,
mz_uint32  uncomp_crc32,
time_t *  last_modified,
const char *  user_extra_data_local,
mz_uint  user_extra_data_local_len,
const char *  user_extra_data_central,
mz_uint  user_extra_data_central_len 
)

Definition at line 5676 of file miniz.cpp.

◆ mz_zip_writer_end()

mz_bool mz_zip_writer_end ( mz_zip_archive pZip)

Definition at line 6837 of file miniz.cpp.

◆ mz_zip_writer_finalize_archive()

mz_bool mz_zip_writer_finalize_archive ( mz_zip_archive pZip)

Definition at line 6724 of file miniz.cpp.

◆ mz_zip_writer_finalize_heap_archive()

mz_bool mz_zip_writer_finalize_heap_archive ( mz_zip_archive pZip,
void **  ppBuf,
size_t *  pSize 
)

Definition at line 6812 of file miniz.cpp.

◆ mz_zip_writer_init()

mz_bool mz_zip_writer_init ( mz_zip_archive pZip,
mz_uint64  existing_size 
)

Definition at line 5268 of file miniz.cpp.

◆ mz_zip_writer_init_cfile()

mz_bool mz_zip_writer_init_cfile ( mz_zip_archive pZip,
FILE *  pFile,
mz_uint  flags 
)

Definition at line 5373 of file miniz.cpp.

◆ mz_zip_writer_init_file()

mz_bool mz_zip_writer_init_file ( mz_zip_archive pZip,
const char *  pFilename,
mz_uint64  size_to_reserve_at_beginning 
)

Definition at line 5322 of file miniz.cpp.

◆ mz_zip_writer_init_file_v2()

mz_bool mz_zip_writer_init_file_v2 ( mz_zip_archive pZip,
const char *  pFilename,
mz_uint64  size_to_reserve_at_beginning,
mz_uint  flags 
)

Definition at line 5327 of file miniz.cpp.

◆ mz_zip_writer_init_from_reader()

mz_bool mz_zip_writer_init_from_reader ( mz_zip_archive pZip,
const char *  pFilename 
)

Definition at line 5478 of file miniz.cpp.

◆ mz_zip_writer_init_from_reader_v2()

mz_bool mz_zip_writer_init_from_reader_v2 ( mz_zip_archive pZip,
const char *  pFilename,
mz_uint  flags 
)

Definition at line 5393 of file miniz.cpp.

◆ mz_zip_writer_init_heap()

mz_bool mz_zip_writer_init_heap ( mz_zip_archive pZip,
size_t  size_to_reserve_at_beginning,
size_t  initial_allocation_size 
)

Definition at line 5300 of file miniz.cpp.

◆ mz_zip_writer_init_heap_v2()

mz_bool mz_zip_writer_init_heap_v2 ( mz_zip_archive pZip,
size_t  size_to_reserve_at_beginning,
size_t  initial_allocation_size,
mz_uint  flags 
)

Definition at line 5273 of file miniz.cpp.

◆ mz_zip_writer_init_v2()

mz_bool mz_zip_writer_init_v2 ( mz_zip_archive pZip,
mz_uint64  existing_size,
mz_uint  flags 
)

Definition at line 5219 of file miniz.cpp.

◆ mz_zip_zero_struct()

void mz_zip_zero_struct ( mz_zip_archive pZip)

Definition at line 3689 of file miniz.cpp.

◆ tdefl_compress()

tdefl_status tdefl_compress ( tdefl_compressor d,
const void *  pIn_buf,
size_t *  pIn_buf_size,
void *  pOut_buf,
size_t *  pOut_buf_size,
tdefl_flush  flush 
)

Definition at line 1840 of file miniz.cpp.

◆ tdefl_compress_buffer()

tdefl_status tdefl_compress_buffer ( tdefl_compressor d,
const void *  pIn_buf,
size_t  in_buf_size,
tdefl_flush  flush 
)

Definition at line 1908 of file miniz.cpp.

◆ tdefl_compress_mem_to_heap()

void* tdefl_compress_mem_to_heap ( const void *  pSrc_buf,
size_t  src_buf_len,
size_t *  pOut_len,
int  flags 
)

Definition at line 2004 of file miniz.cpp.

◆ tdefl_compress_mem_to_mem()

size_t tdefl_compress_mem_to_mem ( void *  pOut_buf,
size_t  out_buf_len,
const void *  pSrc_buf,
size_t  src_buf_len,
int  flags 
)

Definition at line 2019 of file miniz.cpp.

◆ tdefl_compress_mem_to_output()

mz_bool tdefl_compress_mem_to_output ( const void *  pBuf,
size_t  buf_len,
tdefl_put_buf_func_ptr  pPut_buf_func,
void *  pPut_buf_user,
int  flags 
)

Definition at line 1957 of file miniz.cpp.

◆ tdefl_compressor_alloc()

tdefl_compressor* tdefl_compressor_alloc ( )

Definition at line 2137 of file miniz.cpp.

◆ tdefl_compressor_free()

void tdefl_compressor_free ( tdefl_compressor pComp)

Definition at line 2142 of file miniz.cpp.

◆ tdefl_create_comp_flags_from_zip_params()

mz_uint tdefl_create_comp_flags_from_zip_params ( int  level,
int  window_bits,
int  strategy 
)

Definition at line 2036 of file miniz.cpp.

◆ tdefl_get_adler32()

mz_uint32 tdefl_get_adler32 ( tdefl_compressor d)

Definition at line 1952 of file miniz.cpp.

◆ tdefl_get_prev_return_status()

tdefl_status tdefl_get_prev_return_status ( tdefl_compressor d)

Definition at line 1947 of file miniz.cpp.

◆ tdefl_init()

tdefl_status tdefl_init ( tdefl_compressor d,
tdefl_put_buf_func_ptr  pPut_buf_func,
void *  pPut_buf_user,
int  flags 
)

Definition at line 1914 of file miniz.cpp.

◆ tdefl_write_image_to_png_file_in_memory()

void* tdefl_write_image_to_png_file_in_memory ( const void *  pImage,
int  w,
int  h,
int  num_chans,
size_t *  pLen_out 
)

Definition at line 2128 of file miniz.cpp.

◆ tdefl_write_image_to_png_file_in_memory_ex()

void* tdefl_write_image_to_png_file_in_memory_ex ( const void *  pImage,
int  w,
int  h,
int  num_chans,
size_t *  pLen_out,
mz_uint  level,
mz_bool  flip 
)

Definition at line 2065 of file miniz.cpp.

◆ tinfl_decompress()

tinfl_status tinfl_decompress ( tinfl_decompressor r,
const mz_uint8 pIn_buf_next,
size_t *  pIn_buf_size,
mz_uint8 pOut_buf_start,
mz_uint8 pOut_buf_next,
size_t *  pOut_buf_size,
const mz_uint32  decomp_flags 
)

Definition at line 2328 of file miniz.cpp.

◆ tinfl_decompress_mem_to_callback()

int tinfl_decompress_mem_to_callback ( const void *  pIn_buf,
size_t *  pIn_buf_size,
tinfl_put_buf_func_ptr  pPut_buf_func,
void *  pPut_buf_user,
int  flags 
)

Definition at line 2843 of file miniz.cpp.

◆ tinfl_decompress_mem_to_heap()

void* tinfl_decompress_mem_to_heap ( const void *  pSrc_buf,
size_t  src_buf_len,
size_t *  pOut_len,
int  flags 
)

Definition at line 2796 of file miniz.cpp.

◆ tinfl_decompress_mem_to_mem()

size_t tinfl_decompress_mem_to_mem ( void *  pOut_buf,
size_t  out_buf_len,
const void *  pSrc_buf,
size_t  src_buf_len,
int  flags 
)

Definition at line 2834 of file miniz.cpp.

◆ tinfl_decompressor_alloc()

tinfl_decompressor* tinfl_decompressor_alloc ( )

Definition at line 2872 of file miniz.cpp.

◆ tinfl_decompressor_free()

void tinfl_decompressor_free ( tinfl_decompressor pDecomp)

Definition at line 2880 of file miniz.cpp.