155#ifdef MINIZ_NO_INFLATE_APIS
156#define MINIZ_NO_ARCHIVE_APIS
159#ifdef MINIZ_NO_DEFLATE_APIS
160#define MINIZ_NO_ARCHIVE_WRITING_APIS
163#if defined(__TINYC__) && (defined(__linux) || defined(__linux__))
170#if !defined(MINIZ_NO_TIME) && !defined(MINIZ_NO_ARCHIVE_APIS)
174#if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__i386) || defined(__i486__) || defined(__i486) || defined(i386) || defined(__ia64__) || defined(__x86_64__)
176#define MINIZ_X86_OR_X64_CPU 1
178#define MINIZ_X86_OR_X64_CPU 0
182#if !defined(MINIZ_LITTLE_ENDIAN)
183#if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__)
185#if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
187#define MINIZ_LITTLE_ENDIAN 1
189#define MINIZ_LITTLE_ENDIAN 0
194#if MINIZ_X86_OR_X64_CPU
195#define MINIZ_LITTLE_ENDIAN 1
197#define MINIZ_LITTLE_ENDIAN 0
204#if defined(__has_feature)
205#if __has_feature(undefined_behavior_sanitizer)
206#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0
211#if !defined(MINIZ_USE_UNALIGNED_LOADS_AND_STORES)
212#if MINIZ_X86_OR_X64_CPU
214#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0
215#define MINIZ_UNALIGNED_USE_MEMCPY
217#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0
221#if defined(_M_X64) || defined(_WIN64) || defined(__MINGW64__) || defined(_LP64) || defined(__LP64__) || defined(__ia64__) || defined(__x86_64__)
223#define MINIZ_HAS_64BIT_REGISTERS 1
225#define MINIZ_HAS_64BIT_REGISTERS 0
238MINIZ_EXPORT
void mz_free(
void *p);
240#define MZ_ADLER32_INIT (1)
244#define MZ_CRC32_INIT (0)
263typedef void *(*mz_alloc_func)(
void *opaque,
size_t items,
size_t size);
265typedef void *(*mz_realloc_func)(
void *opaque,
void *address,
size_t items,
size_t size);
278#define MZ_VERSION "11.0.2"
279#define MZ_VERNUM 0xB002
280#define MZ_VER_MAJOR 11
281#define MZ_VER_MINOR 2
282#define MZ_VER_REVISION 0
283#define MZ_VER_SUBREVISION 0
285#ifndef MINIZ_NO_ZLIB_APIS
314#define MZ_DEFAULT_WINDOW_BITS 15
316struct mz_internal_state;
346#ifndef MINIZ_NO_DEFLATE_APIS
366MINIZ_EXPORT
int mz_deflateInit2(
mz_streamp pStream,
int level,
int method,
int window_bits,
int mem_level,
int strategy);
402#ifndef MINIZ_NO_INFLATE_APIS
440MINIZ_EXPORT
const char *
mz_error(
int err);
444#ifndef MINIZ_NO_ZLIB_COMPATIBLE_NAMES
457#define Z_NO_FLUSH MZ_NO_FLUSH
458#define Z_PARTIAL_FLUSH MZ_PARTIAL_FLUSH
459#define Z_SYNC_FLUSH MZ_SYNC_FLUSH
460#define Z_FULL_FLUSH MZ_FULL_FLUSH
461#define Z_FINISH MZ_FINISH
462#define Z_BLOCK MZ_BLOCK
464#define Z_STREAM_END MZ_STREAM_END
465#define Z_NEED_DICT MZ_NEED_DICT
466#define Z_ERRNO MZ_ERRNO
467#define Z_STREAM_ERROR MZ_STREAM_ERROR
468#define Z_DATA_ERROR MZ_DATA_ERROR
469#define Z_MEM_ERROR MZ_MEM_ERROR
470#define Z_BUF_ERROR MZ_BUF_ERROR
471#define Z_VERSION_ERROR MZ_VERSION_ERROR
472#define Z_PARAM_ERROR MZ_PARAM_ERROR
473#define Z_NO_COMPRESSION MZ_NO_COMPRESSION
474#define Z_BEST_SPEED MZ_BEST_SPEED
475#define Z_BEST_COMPRESSION MZ_BEST_COMPRESSION
476#define Z_DEFAULT_COMPRESSION MZ_DEFAULT_COMPRESSION
477#define Z_DEFAULT_STRATEGY MZ_DEFAULT_STRATEGY
478#define Z_FILTERED MZ_FILTERED
479#define Z_HUFFMAN_ONLY MZ_HUFFMAN_ONLY
481#define Z_FIXED MZ_FIXED
482#define Z_DEFLATED MZ_DEFLATED
483#define Z_DEFAULT_WINDOW_BITS MZ_DEFAULT_WINDOW_BITS
484#define alloc_func mz_alloc_func
485#define free_func mz_free_func
486#define internal_state mz_internal_state
487#define z_stream mz_stream
489#ifndef MINIZ_NO_DEFLATE_APIS
490#define deflateInit mz_deflateInit
491#define deflateInit2 mz_deflateInit2
492#define deflateReset mz_deflateReset
493#define deflate mz_deflate
494#define deflateEnd mz_deflateEnd
495#define deflateBound mz_deflateBound
496#define compress mz_compress
497#define compress2 mz_compress2
498#define compressBound mz_compressBound
501#ifndef MINIZ_NO_INFLATE_APIS
502#define inflateInit mz_inflateInit
503#define inflateInit2 mz_inflateInit2
504#define inflateReset mz_inflateReset
505#define inflate mz_inflate
506#define inflateEnd mz_inflateEnd
507#define uncompress mz_uncompress
508#define uncompress2 mz_uncompress2
511#define crc32 mz_crc32
512#define adler32 mz_adler32
514#define MAX_MEM_LEVEL 9
515#define zError mz_error
516#define ZLIB_VERSION MZ_VERSION
517#define ZLIB_VERNUM MZ_VERNUM
518#define ZLIB_VER_MAJOR MZ_VER_MAJOR
519#define ZLIB_VER_MINOR MZ_VER_MINOR
520#define ZLIB_VER_REVISION MZ_VER_REVISION
521#define ZLIB_VER_SUBREVISION MZ_VER_SUBREVISION
522#define zlibVersion mz_version
523#define zlib_version mz_version()
559#define MZ_MACRO_END while (0, 0)
561#define MZ_MACRO_END while (0)
565#define MZ_FILE void *
572typedef struct mz_dummy_time_t_tag
577#define MZ_TIME_T mz_dummy_time_t
579#define MZ_TIME_T time_t
582#define MZ_ASSERT(x) assert(x)
584#ifdef MINIZ_NO_MALLOC
585#define MZ_MALLOC(x) NULL
586#define MZ_FREE(x) (void)x, ((void)0)
587#define MZ_REALLOC(p, x) NULL
589#define MZ_MALLOC(x) malloc(x)
590#define MZ_FREE(x) free(x)
591#define MZ_REALLOC(p, x) realloc(p, x)
594#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
595#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
596#define MZ_CLEAR_OBJ(obj) memset(&(obj), 0, sizeof(obj))
597#define MZ_CLEAR_ARR(obj) memset((obj), 0, sizeof(obj))
598#define MZ_CLEAR_PTR(obj) memset((obj), 0, sizeof(*obj))
600#if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN
601#define MZ_READ_LE16(p) *((const mz_uint16 *)(p))
602#define MZ_READ_LE32(p) *((const mz_uint32 *)(p))
604#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
605#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))
608#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
611#define MZ_FORCEINLINE __forceinline
612#elif defined(__GNUC__)
613#define MZ_FORCEINLINE __inline__ __attribute__((__always_inline__))
615#define MZ_FORCEINLINE inline
626#define MZ_UINT16_MAX (0xFFFFU)
627#define MZ_UINT32_MAX (0xFFFFFFFFU)
635#ifndef MINIZ_NO_DEFLATE_APIS
643#define TDEFL_LESS_MEMORY 0
688MINIZ_EXPORT
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);
772 mz_uint m_saved_match_dist, m_saved_match_len, m_saved_lit, m_output_flush_ofs, m_output_flush_remaining, m_finished,
m_block_index, m_wants_to_finish;
813#ifndef MINIZ_NO_MALLOC
830#ifndef MINIZ_NO_INFLATE_APIS
860#define TINFL_DECOMPRESS_MEM_TO_MEM_FAILED ((size_t)(-1))
861MINIZ_EXPORT
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);
871#ifndef MINIZ_NO_MALLOC
880#define TINFL_LZ_DICT_SIZE 32768
917#define tinfl_init(r) \
923#define tinfl_get_adler32(r) (r)->m_check_adler32
940#if MINIZ_HAS_64BIT_REGISTERS
941#define TINFL_USE_64BIT_BITBUF 1
943#define TINFL_USE_64BIT_BITBUF 0
946#if TINFL_USE_64BIT_BITBUF
948#define TINFL_BITBUF_SIZE (64)
951#define TINFL_BITBUF_SIZE (32)
956 mz_uint32 m_state,
m_num_bits,
m_zhdr0,
m_zhdr1,
m_z_adler32,
m_final,
m_type,
m_check_adler32,
m_dist,
m_counter,
m_num_extra,
m_table_sizes[
TINFL_MAX_HUFF_TABLES];
980#ifndef MINIZ_NO_ARCHIVE_APIS
1170#ifdef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS
1186#ifndef MINIZ_NO_STDIO
1284#ifndef MINIZ_NO_STDIO
1297 typedef void *mz_zip_streaming_extract_state_ptr;
1300 mz_uint64 mz_zip_streaming_extract_get_cur_ofs(
mz_zip_archive *pZip, mz_zip_streaming_extract_state_ptr pState);
1302 size_t mz_zip_streaming_extract_read(
mz_zip_archive *pZip, mz_zip_streaming_extract_state_ptr pState,
void *pBuf,
size_t buf_size);
1303 mz_bool mz_zip_streaming_extract_end(
mz_zip_archive *pZip, mz_zip_streaming_extract_state_ptr pState);
1315#ifndef MINIZ_NO_STDIO
1324#ifndef MINIZ_NO_ARCHIVE_WRITING_APIS
1335#ifndef MINIZ_NO_STDIO
1362 const char *user_extra_data_central,
mz_uint user_extra_data_central_len);
1367 const MZ_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,
1368 const char *user_extra_data_central,
mz_uint user_extra_data_central_len);
1371#ifndef MINIZ_NO_STDIO
1378 const MZ_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,
1379 const char *user_extra_data_central,
mz_uint user_extra_data_central_len);
1408#ifndef MINIZ_NO_STDIO
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
MINIZ_EXPORT int mz_inflateInit(mz_streamp pStream)
@ MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE
@ MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE
MINIZ_EXPORT mz_ulong mz_compressBound(mz_ulong source_len)
MINIZ_EXPORT MZ_FILE * mz_zip_get_cfile(mz_zip_archive *pZip)
MINIZ_EXPORT 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)
@ TINFL_MAX_HUFF_SYMBOLS_2
@ TINFL_MAX_HUFF_SYMBOLS_0
@ TINFL_MAX_HUFF_SYMBOLS_1
MINIZ_EXPORT mz_bool mz_zip_reader_end(mz_zip_archive *pZip)
@ MZ_ZIP_FLAG_ASCII_FILENAME
@ MZ_ZIP_FLAG_WRITE_HEADER_SET_SIZE
@ MZ_ZIP_FLAG_WRITE_ZIP64
@ MZ_ZIP_FLAG_WRITE_ALLOW_READING
@ MZ_ZIP_FLAG_VALIDATE_HEADERS_ONLY
@ MZ_ZIP_FLAG_VALIDATE_LOCATE_FILE_FLAG
@ MZ_ZIP_FLAG_COMPRESSED_DATA
@ MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY
@ MZ_ZIP_FLAG_CASE_SENSITIVE
@ MZ_ZIP_FLAG_IGNORE_PATH
MINIZ_EXPORT mz_bool mz_zip_writer_init_from_reader(mz_zip_archive *pZip, const char *pFilename)
MINIZ_EXPORT mz_bool mz_zip_reader_init_cfile(mz_zip_archive *pZip, MZ_FILE *pFile, mz_uint64 archive_size, mz_uint flags)
MINIZ_EXPORT 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)
@ TDEFL_LEVEL1_HASH_SIZE_MASK
MINIZ_EXPORT size_t mz_zip_get_central_dir_size(mz_zip_archive *pZip)
MINIZ_EXPORT tdefl_status tdefl_get_prev_return_status(tdefl_compressor *d)
void *(* mz_alloc_func)(void *opaque, size_t items, size_t size)
MINIZ_EXPORT int mz_compress(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len)
MINIZ_EXPORT tdefl_compressor * tdefl_compressor_alloc(void)
MINIZ_EXPORT mz_bool mz_zip_validate_file(mz_zip_archive *pZip, mz_uint file_index, mz_uint flags)
MINIZ_EXPORT size_t mz_zip_reader_extract_iter_read(mz_zip_reader_extract_iter_state *pState, void *pvBuf, size_t buf_size)
struct mz_stream_s mz_stream
MINIZ_EXPORT int mz_deflateInit2(mz_streamp pStream, int level, int method, int window_bits, int mem_level, int strategy)
@ TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF
@ TINFL_FLAG_HAS_MORE_INPUT
@ TINFL_FLAG_COMPUTE_ADLER32
@ TINFL_FLAG_PARSE_ZLIB_HEADER
size_t(* mz_file_write_func)(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n)
MINIZ_EXPORT 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)
MINIZ_EXPORT mz_bool mz_zip_validate_archive(mz_zip_archive *pZip, mz_uint flags)
MINIZ_EXPORT int mz_uncompress(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len)
MINIZ_EXPORT void * mz_zip_reader_extract_to_heap(mz_zip_archive *pZip, mz_uint file_index, size_t *pSize, mz_uint flags)
@ TDEFL_DEFAULT_MAX_PROBES
MINIZ_EXPORT mz_zip_error mz_zip_peek_last_error(mz_zip_archive *pZip)
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_bool mz_zip_writer_init_file(mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_reserve_at_beginning)
MINIZ_EXPORT void tinfl_decompressor_free(tinfl_decompressor *pDecomp)
MINIZ_EXPORT mz_zip_mode mz_zip_get_mode(mz_zip_archive *pZip)
MINIZ_EXPORT int mz_deflateEnd(mz_streamp pStream)
MINIZ_EXPORT size_t mz_zip_read_archive_data(mz_zip_archive *pZip, mz_uint64 file_ofs, void *pBuf, size_t n)
MINIZ_EXPORT 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, MZ_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)
MINIZ_EXPORT const char * mz_error(int err)
MINIZ_EXPORT mz_bool mz_zip_validate_mem_archive(const void *pMem, size_t size, mz_uint flags, mz_zip_error *pErr)
MINIZ_EXPORT mz_bool mz_zip_reader_is_file_a_directory(mz_zip_archive *pZip, mz_uint file_index)
MINIZ_EXPORT int mz_inflateEnd(mz_streamp pStream)
MINIZ_EXPORT 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)
MINIZ_EXPORT mz_ulong mz_adler32(mz_ulong adler, const unsigned char *ptr, size_t buf_len)
MINIZ_EXPORT const char * mz_zip_get_error_string(mz_zip_error mz_err)
@ TINFL_STATUS_ADLER32_MISMATCH
@ TINFL_STATUS_NEEDS_MORE_INPUT
@ TINFL_STATUS_HAS_MORE_OUTPUT
@ TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS
MINIZ_EXPORT mz_bool mz_zip_reader_extract_file_to_file(mz_zip_archive *pZip, const char *pArchive_filename, const char *pDst_filename, mz_uint flags)
MINIZ_EXPORT void * miniz_def_alloc_func(void *opaque, size_t items, size_t size)
MINIZ_EXPORT 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)
MINIZ_EXPORT void * miniz_def_realloc_func(void *opaque, void *address, size_t items, size_t size)
MINIZ_EXPORT mz_uint mz_zip_reader_get_num_files(mz_zip_archive *pZip)
MINIZ_EXPORT void * tdefl_compress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags)
MINIZ_EXPORT void * tinfl_decompress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags)
MINIZ_EXPORT 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)
int(* tinfl_put_buf_func_ptr)(const void *pBuf, int len, void *pUser)
MINIZ_EXPORT mz_bool mz_zip_writer_init_v2(mz_zip_archive *pZip, mz_uint64 existing_size, mz_uint flags)
MINIZ_EXPORT tdefl_status tdefl_init(tdefl_compressor *d, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags)
MINIZ_EXPORT 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)
MINIZ_EXPORT mz_bool mz_zip_writer_init_heap(mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size)
MINIZ_EXPORT mz_bool mz_zip_writer_init_from_reader_v2(mz_zip_archive *pZip, const char *pFilename, mz_uint flags)
MINIZ_EXPORT void * mz_zip_extract_archive_file_to_heap(const char *pZip_filename, const char *pArchive_name, size_t *pSize, mz_uint flags)
MINIZ_EXPORT mz_ulong mz_crc32(mz_ulong crc, const unsigned char *ptr, size_t buf_len)
MINIZ_EXPORT mz_bool mz_zip_reader_init_file(mz_zip_archive *pZip, const char *pFilename, mz_uint32 flags)
MINIZ_EXPORT mz_bool mz_zip_reader_is_file_supported(mz_zip_archive *pZip, mz_uint file_index)
MINIZ_EXPORT mz_zip_type mz_zip_get_type(mz_zip_archive *pZip)
MINIZ_EXPORT int mz_deflateInit(mz_streamp pStream, int level)
MINIZ_EXPORT mz_bool mz_zip_writer_add_cfile(mz_zip_archive *pZip, const char *pArchive_name, MZ_FILE *pSrc_file, mz_uint64 max_size, const MZ_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)
MINIZ_EXPORT mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int strategy)
MINIZ_EXPORT mz_bool mz_zip_reader_extract_iter_free(mz_zip_reader_extract_iter_state *pState)
MINIZ_EXPORT 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)
MINIZ_EXPORT void * mz_zip_reader_extract_file_to_heap(mz_zip_archive *pZip, const char *pFilename, size_t *pSize, mz_uint flags)
MINIZ_EXPORT void * tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h, int num_chans, size_t *pLen_out)
MINIZ_EXPORT mz_bool mz_zip_reader_extract_file_to_cfile(mz_zip_archive *pZip, const char *pArchive_filename, MZ_FILE *pFile, mz_uint flags)
MINIZ_EXPORT mz_bool mz_zip_writer_add_from_zip_reader(mz_zip_archive *pZip, mz_zip_archive *pSource_zip, mz_uint src_file_index)
MINIZ_EXPORT mz_bool mz_zip_writer_finalize_heap_archive(mz_zip_archive *pZip, void **ppBuf, size_t *pSize)
MINIZ_EXPORT mz_bool mz_zip_reader_file_stat(mz_zip_archive *pZip, mz_uint file_index, mz_zip_archive_file_stat *pStat)
@ TDEFL_FORCE_ALL_RAW_BLOCKS
@ TDEFL_GREEDY_PARSING_FLAG
@ TDEFL_FORCE_ALL_STATIC_BLOCKS
@ TDEFL_WRITE_ZLIB_HEADER
@ TDEFL_NONDETERMINISTIC_PARSING_FLAG
MINIZ_EXPORT mz_bool mz_zip_validate_file_archive(const char *pFilename, mz_uint flags, mz_zip_error *pErr)
MINIZ_EXPORT 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)
MINIZ_EXPORT 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)
size_t(* mz_file_read_func)(void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n)
MINIZ_EXPORT void tdefl_compressor_free(tdefl_compressor *pComp)
MINIZ_EXPORT void mz_zip_zero_struct(mz_zip_archive *pZip)
MINIZ_EXPORT tdefl_status tdefl_compress_buffer(tdefl_compressor *d, const void *pIn_buf, size_t in_buf_size, tdefl_flush flush)
MINIZ_EXPORT mz_bool mz_zip_reader_is_file_encrypted(mz_zip_archive *pZip, mz_uint file_index)
MINIZ_EXPORT 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)
MINIZ_EXPORT void miniz_def_free_func(void *opaque, void *address)
MINIZ_EXPORT 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)
MINIZ_EXPORT mz_uint64 mz_zip_get_archive_size(mz_zip_archive *pZip)
MINIZ_EXPORT int mz_inflate(mz_streamp pStream, int flush)
MINIZ_EXPORT mz_ulong mz_deflateBound(mz_streamp pStream, mz_ulong source_len)
MINIZ_EXPORT 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)
MINIZ_EXPORT mz_zip_reader_extract_iter_state * mz_zip_reader_extract_file_iter_new(mz_zip_archive *pZip, const char *pFilename, mz_uint flags)
MINIZ_EXPORT void mz_free(void *p)
MINIZ_EXPORT 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)
MINIZ_EXPORT int mz_uncompress2(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong *pSource_len)
MINIZ_EXPORT 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)
MINIZ_EXPORT int mz_deflate(mz_streamp pStream, int flush)
MINIZ_EXPORT 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)
void *(* mz_realloc_func)(void *opaque, void *address, size_t items, size_t size)
MINIZ_EXPORT mz_bool mz_zip_writer_end(mz_zip_archive *pZip)
MINIZ_EXPORT mz_bool mz_zip_end(mz_zip_archive *pZip)
MINIZ_EXPORT mz_zip_error mz_zip_get_last_error(mz_zip_archive *pZip)
MINIZ_EXPORT 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)
MINIZ_EXPORT mz_bool mz_zip_is_zip64(mz_zip_archive *pZip)
@ TDEFL_STATUS_PUT_BUF_FAILED
void(* mz_free_func)(void *opaque, void *address)
MINIZ_EXPORT mz_uint32 tdefl_get_adler32(tdefl_compressor *d)
@ TDEFL_MAX_HUFF_SYMBOLS_0
@ TDEFL_LZ_DICT_SIZE_MASK
@ TDEFL_MAX_HUFF_SYMBOLS_1
@ TDEFL_MAX_HUFF_SYMBOLS_2
MINIZ_EXPORT mz_uint mz_zip_reader_get_filename(mz_zip_archive *pZip, mz_uint file_index, char *pFilename, mz_uint filename_buf_size)
MINIZ_EXPORT mz_uint64 mz_zip_get_archive_file_start_offset(mz_zip_archive *pZip)
MINIZ_EXPORT tinfl_decompressor * tinfl_decompressor_alloc(void)
MINIZ_EXPORT const char * mz_version(void)
MINIZ_EXPORT mz_bool mz_zip_writer_init_cfile(mz_zip_archive *pZip, MZ_FILE *pFile, mz_uint flags)
MINIZ_EXPORT mz_bool mz_zip_writer_add_read_buf_callback(mz_zip_archive *pZip, const char *pArchive_name, mz_file_read_func read_callback, void *callback_opaque, mz_uint64 max_size, const MZ_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)
MINIZ_EXPORT 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)
MINIZ_EXPORT int mz_inflateReset(mz_streamp pStream)
mz_bool(* mz_file_needs_keepalive)(void *pOpaque)
@ MZ_ZIP_MODE_WRITING_HAS_BEEN_FINALIZED
mz_bool(* tdefl_put_buf_func_ptr)(const void *pBuf, int len, void *pUser)
MINIZ_EXPORT mz_zip_reader_extract_iter_state * mz_zip_reader_extract_iter_new(mz_zip_archive *pZip, mz_uint file_index, mz_uint flags)
MINIZ_EXPORT mz_bool mz_zip_reader_extract_to_file(mz_zip_archive *pZip, mz_uint file_index, const char *pDst_filename, mz_uint flags)
MINIZ_EXPORT int mz_zip_reader_locate_file(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags)
MINIZ_EXPORT 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)
@ MZ_ZIP_UNSUPPORTED_METHOD
@ MZ_ZIP_UNSUPPORTED_FEATURE
@ MZ_ZIP_FILE_OPEN_FAILED
@ MZ_ZIP_WRITE_CALLBACK_FAILED
@ MZ_ZIP_CRC_CHECK_FAILED
@ MZ_ZIP_FILE_CLOSE_FAILED
@ MZ_ZIP_FILE_CREATE_FAILED
@ MZ_ZIP_VALIDATION_FAILED
@ MZ_ZIP_FILE_STAT_FAILED
@ MZ_ZIP_INVALID_FILENAME
@ MZ_ZIP_COMPRESSION_FAILED
@ MZ_ZIP_UNSUPPORTED_ENCRYPTION
@ MZ_ZIP_UNSUPPORTED_MULTIDISK
@ MZ_ZIP_ARCHIVE_TOO_LARGE
@ MZ_ZIP_DECOMPRESSION_FAILED
@ MZ_ZIP_FILE_WRITE_FAILED
@ MZ_ZIP_INVALID_PARAMETER
@ MZ_ZIP_INVALID_HEADER_OR_CORRUPTED
@ MZ_ZIP_UNSUPPORTED_CDIR_SIZE
@ MZ_ZIP_FILE_READ_FAILED
@ MZ_ZIP_FAILED_FINDING_CENTRAL_DIR
@ MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE
@ MZ_ZIP_FILE_SEEK_FAILED
MINIZ_EXPORT int mz_inflateInit2(mz_streamp pStream, int window_bits)
MINIZ_EXPORT mz_zip_error mz_zip_clear_last_error(mz_zip_archive *pZip)
MINIZ_EXPORT mz_bool mz_zip_reader_init(mz_zip_archive *pZip, mz_uint64 size, mz_uint flags)
MINIZ_EXPORT mz_bool mz_zip_writer_init(mz_zip_archive *pZip, mz_uint64 existing_size)
MINIZ_EXPORT mz_zip_error mz_zip_set_last_error(mz_zip_archive *pZip, mz_zip_error err_num)
MINIZ_EXPORT int mz_deflateReset(mz_streamp pStream)
MINIZ_EXPORT 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)
MINIZ_EXPORT 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)
MINIZ_EXPORT 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_uint32 tinfl_bit_buf_t
MINIZ_EXPORT mz_bool mz_zip_writer_finalize_archive(mz_zip_archive *pZip)
MINIZ_EXPORT mz_bool mz_zip_reader_init_mem(mz_zip_archive *pZip, const void *pMem, size_t size, mz_uint flags)
MINIZ_EXPORT mz_bool mz_zip_reader_extract_to_cfile(mz_zip_archive *pZip, mz_uint file_index, MZ_FILE *File, mz_uint flags)
MINIZ_EXPORT 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)
struct mz_internal_state * state
const unsigned char * next_in
mz_uint32 m_external_attr
mz_uint16 m_version_needed
mz_uint16 m_version_made_by
mz_uint64 m_central_dir_ofs
mz_uint64 m_local_header_ofs
mz_uint16 m_internal_attr
mz_uint64 m_central_directory_file_ofs
mz_zip_error m_last_error
mz_file_needs_keepalive m_pNeeds_keepalive
mz_file_write_func m_pWrite
mz_zip_internal_state * m_pState
mz_realloc_func m_pRealloc
mz_file_read_func m_pRead
mz_uint64 m_file_offset_alignment
tdefl_status m_prev_return_status
tdefl_put_buf_func_ptr m_pPut_buf_func
mz_uint8 * m_pLZ_code_buf
mz_uint8 m_code_size_0[TINFL_MAX_HUFF_SYMBOLS_0]
tinfl_bit_buf_t m_bit_buf
size_t m_dist_from_out_buf_start
mz_uint32 m_check_adler32
mz_int16 m_tree_0[TINFL_MAX_HUFF_SYMBOLS_0 *2]
mz_int16 m_tree_1[TINFL_MAX_HUFF_SYMBOLS_1 *2]
mz_int16 m_look_up[TINFL_MAX_HUFF_TABLES][TINFL_FAST_LOOKUP_SIZE]
mz_int16 m_tree_2[TINFL_MAX_HUFF_SYMBOLS_2 *2]
mz_uint32 m_table_sizes[TINFL_MAX_HUFF_TABLES]
mz_uint8 m_code_size_2[TINFL_MAX_HUFF_SYMBOLS_2]
mz_uint8 m_len_codes[TINFL_MAX_HUFF_SYMBOLS_0+TINFL_MAX_HUFF_SYMBOLS_1+137]
mz_uint8 m_code_size_1[TINFL_MAX_HUFF_SYMBOLS_1]