|
Canorus
0.0
|
#include <stdlib.h>#include <time.h>#include <string.h>#include <assert.h>#include <stdio.h>#include <sys/stat.h>#include <utime.h>
Go to the source code of this file.
Classes | |
| struct | mz_stream_s |
| struct | mz_zip_archive_file_stat |
| struct | mz_zip_archive_tag |
| struct | tinfl_huff_table |
| struct | tinfl_decompressor_tag |
| struct | tdefl_compressor |
| struct | inflate_state |
| struct | tdefl_sym_freq |
| struct | tdefl_output_buffer |
| struct | mz_zip_array |
| struct | mz_zip_internal_state_tag |
| struct | mz_zip_writer_add_state |
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 (0) |
| #define | MZ_TRUE (1) |
| #define | MZ_MACRO_END while (0) |
| #define | TINFL_DECOMPRESS_MEM_TO_MEM_FAILED ((size_t)(-1)) |
| #define | TINFL_LZ_DICT_SIZE 32768 |
| #define | tinfl_init(r) do { (r)->m_state = 0; } MZ_MACRO_END |
| #define | tinfl_get_adler32(r) (r)->m_check_adler32 |
| #define | TINFL_BITBUF_SIZE (32) |
| #define | TDEFL_LESS_MEMORY 0 |
| #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_FORCEINLINE inline |
| #define | TINFL_MEMCPY(d, s, l) memcpy(d, s, l) |
| #define | TINFL_MEMSET(p, c, l) memset(p, c, l) |
| #define | TINFL_CR_BEGIN switch(r->m_state) { case 0: |
| #define | TINFL_CR_RETURN(state_index, result) do { status = result; r->m_state = state_index; goto common_exit; case state_index:; } MZ_MACRO_END |
| #define | TINFL_CR_RETURN_FOREVER(state_index, result) do { for ( ; ; ) { TINFL_CR_RETURN(state_index, result); } } MZ_MACRO_END |
| #define | TINFL_CR_FINISH } |
| #define | TINFL_GET_BYTE(state_index, c) |
| #define | TINFL_NEED_BITS(state_index, n) do { mz_uint c; TINFL_GET_BYTE(state_index, c); bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); num_bits += 8; } while (num_bits < (mz_uint)(n)) |
| #define | TINFL_SKIP_BITS(state_index, n) do { if (num_bits < (mz_uint)(n)) { TINFL_NEED_BITS(state_index, n); } bit_buf >>= (n); num_bits -= (n); } MZ_MACRO_END |
| #define | TINFL_GET_BITS(state_index, b, n) do { if (num_bits < (mz_uint)(n)) { TINFL_NEED_BITS(state_index, n); } b = bit_buf & ((1 << (n)) - 1); bit_buf >>= (n); num_bits -= (n); } MZ_MACRO_END |
| #define | TINFL_HUFF_BITBUF_FILL(state_index, pHuff) |
| #define | TINFL_HUFF_DECODE(state_index, sym, pHuff) |
| #define | TDEFL_PUT_BITS(b, l) |
| #define | TDEFL_RLE_PREV_CODE_SIZE() |
| #define | TDEFL_RLE_ZERO_CODE_SIZE() |
| #define | TDEFL_PROBE |
| #define | MZ_FILE FILE |
| #define | MZ_FOPEN(f, m) fopen(f, m) |
| #define | MZ_FCLOSE fclose |
| #define | MZ_FREAD fread |
| #define | MZ_FWRITE fwrite |
| #define | MZ_FTELL64 ftello |
| #define | MZ_FSEEK64 fseeko |
| #define | MZ_FILE_STAT_STRUCT stat |
| #define | MZ_FILE_STAT stat |
| #define | MZ_FFLUSH fflush |
| #define | MZ_FREOPEN(f, m, s) freopen(f, m, s) |
| #define | MZ_DELETE_FILE remove |
| #define | MZ_TOLOWER(c) ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c)) |
| #define | MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(array_ptr, element_size) (array_ptr)->m_element_size = element_size |
| #define | MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index] |
| #define | MZ_SWAP_UINT32(a, b) do { mz_uint32 t = a; a = b; b = t; } MZ_MACRO_END |
| #define | MZ_WRITE_LE16(p, v) mz_write_le16((mz_uint8 *)(p), (mz_uint16)(v)) |
| #define | MZ_WRITE_LE32(p, v) mz_write_le32((mz_uint8 *)(p), (mz_uint32)(v)) |
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 |
| typedef unsigned char | mz_uint8 |
| typedef signed short | mz_int16 |
| typedef unsigned short | mz_uint16 |
| typedef unsigned int | mz_uint32 |
| typedef unsigned int | mz_uint |
| typedef long long | mz_int64 |
| typedef unsigned long long | mz_uint64 |
| typedef int | mz_bool |
| 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 |
| typedef struct mz_zip_archive_tag | mz_zip_archive |
| 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 mz_bool(* | tdefl_put_buf_func_ptr) (const void *pBuf, int len, void *pUser) |
| typedef unsigned char | mz_validate_uint16[sizeof(mz_uint16)==2 ? 1 :-1] |
| typedef unsigned char | mz_validate_uint32[sizeof(mz_uint32)==4 ? 1 :-1] |
| typedef unsigned char | mz_validate_uint64[sizeof(mz_uint64)==8 ? 1 :-1] |
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) |
| mz_bool | mz_zip_reader_init (mz_zip_archive *pZip, mz_uint64 size, mz_uint32 flags) |
| mz_bool | mz_zip_reader_init_mem (mz_zip_archive *pZip, const void *pMem, size_t size, mz_uint32 flags) |
| mz_bool | mz_zip_reader_init_file (mz_zip_archive *pZip, const char *pFilename, mz_uint32 flags) |
| mz_uint | mz_zip_reader_get_num_files (mz_zip_archive *pZip) |
| 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_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_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_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_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_heap (mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size) |
| 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_from_reader (mz_zip_archive *pZip, const char *pFilename) |
| 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_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_from_zip_reader (mz_zip_archive *pZip, mz_zip_archive *pSource_zip, mz_uint 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 **pBuf, 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) |
| void * | mz_zip_extract_archive_file_to_heap (const char *pZip_filename, const char *pArchive_name, size_t *pSize, mz_uint zip_flags) |
| 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_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) |
| 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) |
| static void * | def_alloc_func (void *opaque, size_t items, size_t size) |
| static void | def_free_func (void *opaque, void *address) |
| static void * | def_realloc_func (void *opaque, void *address, size_t items, size_t size) |
| static tdefl_sym_freq * | tdefl_radix_sort_syms (mz_uint num_syms, tdefl_sym_freq *pSyms0, tdefl_sym_freq *pSyms1) |
| static void | tdefl_calculate_minimum_redundancy (tdefl_sym_freq *A, int n) |
| static void | tdefl_huffman_enforce_max_code_size (int *pNum_codes, int code_list_len, int max_code_size) |
| static void | tdefl_optimize_huffman_table (tdefl_compressor *d, int table_num, int table_len, int code_size_limit, int static_table) |
| static void | tdefl_start_dynamic_block (tdefl_compressor *d) |
| static void | tdefl_start_static_block (tdefl_compressor *d) |
| static mz_bool | tdefl_compress_lz_codes (tdefl_compressor *d) |
| static mz_bool | tdefl_compress_block (tdefl_compressor *d, mz_bool static_block) |
| static int | tdefl_flush_block (tdefl_compressor *d, int flush) |
| static MZ_FORCEINLINE void | tdefl_find_match (tdefl_compressor *d, mz_uint lookahead_pos, mz_uint max_dist, mz_uint max_match_len, mz_uint *pMatch_dist, mz_uint *pMatch_len) |
| static MZ_FORCEINLINE void | tdefl_record_literal (tdefl_compressor *d, mz_uint8 lit) |
| static MZ_FORCEINLINE void | tdefl_record_match (tdefl_compressor *d, mz_uint match_len, mz_uint match_dist) |
| static mz_bool | tdefl_compress_normal (tdefl_compressor *d) |
| static tdefl_status | tdefl_flush_output_buffer (tdefl_compressor *d) |
| static mz_bool | tdefl_output_buffer_putter (const void *pBuf, int len, void *pUser) |
| static MZ_FORCEINLINE void | mz_zip_array_clear (mz_zip_archive *pZip, mz_zip_array *pArray) |
| static mz_bool | mz_zip_array_ensure_capacity (mz_zip_archive *pZip, mz_zip_array *pArray, size_t min_new_capacity, mz_uint growing) |
| static MZ_FORCEINLINE mz_bool | mz_zip_array_reserve (mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_capacity, mz_uint growing) |
| static MZ_FORCEINLINE mz_bool | mz_zip_array_resize (mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_size, mz_uint growing) |
| static MZ_FORCEINLINE mz_bool | mz_zip_array_ensure_room (mz_zip_archive *pZip, mz_zip_array *pArray, size_t n) |
| static MZ_FORCEINLINE mz_bool | mz_zip_array_push_back (mz_zip_archive *pZip, mz_zip_array *pArray, const void *pElements, size_t n) |
| static time_t | mz_zip_dos_to_time_t (int dos_time, int dos_date) |
| static void | mz_zip_time_to_dos_time (time_t time, mz_uint16 *pDOS_time, mz_uint16 *pDOS_date) |
| static mz_bool | mz_zip_get_file_modified_time (const char *pFilename, mz_uint16 *pDOS_time, mz_uint16 *pDOS_date) |
| static mz_bool | mz_zip_set_file_times (const char *pFilename, time_t access_time, time_t modified_time) |
| static mz_bool | mz_zip_reader_init_internal (mz_zip_archive *pZip, mz_uint32 flags) |
| static MZ_FORCEINLINE mz_bool | mz_zip_reader_filename_less (const mz_zip_array *pCentral_dir_array, const mz_zip_array *pCentral_dir_offsets, mz_uint l_index, mz_uint r_index) |
| static void | mz_zip_reader_sort_central_dir_offsets_by_filename (mz_zip_archive *pZip) |
| static mz_bool | mz_zip_reader_read_central_dir (mz_zip_archive *pZip, mz_uint32 flags) |
| static size_t | mz_zip_mem_read_func (void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n) |
| static size_t | mz_zip_file_read_func (void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n) |
| static MZ_FORCEINLINE const mz_uint8 * | mz_zip_reader_get_cdh (mz_zip_archive *pZip, mz_uint file_index) |
| static MZ_FORCEINLINE mz_bool | mz_zip_reader_string_equal (const char *pA, const char *pB, mz_uint len, mz_uint flags) |
| static MZ_FORCEINLINE int | mz_zip_reader_filename_compare (const mz_zip_array *pCentral_dir_array, const mz_zip_array *pCentral_dir_offsets, mz_uint l_index, const char *pR, mz_uint r_len) |
| static int | mz_zip_reader_locate_file_binary_search (mz_zip_archive *pZip, const char *pFilename) |
| static size_t | mz_zip_file_write_callback (void *pOpaque, mz_uint64 ofs, const void *pBuf, size_t n) |
| static void | mz_write_le16 (mz_uint8 *p, mz_uint16 v) |
| static void | mz_write_le32 (mz_uint8 *p, mz_uint32 v) |
| static size_t | mz_zip_heap_write_func (void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) |
| static size_t | mz_zip_file_write_func (void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) |
| static mz_bool | mz_zip_writer_add_put_buf_callback (const void *pBuf, int len, void *pUser) |
| static mz_bool | mz_zip_writer_create_local_dir_header (mz_zip_archive *pZip, mz_uint8 *pDst, mz_uint16 filename_size, mz_uint16 extra_size, mz_uint64 uncomp_size, mz_uint64 comp_size, mz_uint32 uncomp_crc32, mz_uint16 method, mz_uint16 bit_flags, mz_uint16 dos_time, mz_uint16 dos_date) |
| static mz_bool | mz_zip_writer_create_central_dir_header (mz_zip_archive *pZip, mz_uint8 *pDst, mz_uint16 filename_size, mz_uint16 extra_size, mz_uint16 comment_size, mz_uint64 uncomp_size, mz_uint64 comp_size, mz_uint32 uncomp_crc32, mz_uint16 method, mz_uint16 bit_flags, mz_uint16 dos_time, mz_uint16 dos_date, mz_uint64 local_header_ofs, mz_uint32 ext_attributes) |
| static mz_bool | mz_zip_writer_add_to_central_dir (mz_zip_archive *pZip, const char *pFilename, mz_uint16 filename_size, const void *pExtra, mz_uint16 extra_size, const void *pComment, mz_uint16 comment_size, mz_uint64 uncomp_size, mz_uint64 comp_size, mz_uint32 uncomp_crc32, mz_uint16 method, mz_uint16 bit_flags, mz_uint16 dos_time, mz_uint16 dos_date, mz_uint64 local_header_ofs, mz_uint32 ext_attributes) |
| static mz_bool | mz_zip_writer_validate_archive_name (const char *pArchive_name) |
| static mz_uint | mz_zip_writer_compute_padding_needed_for_file_alignment (mz_zip_archive *pZip) |
| static mz_bool | mz_zip_writer_write_zeros (mz_zip_archive *pZip, mz_uint64 cur_file_ofs, mz_uint32 n) |
Variables | |
| static const mz_uint16 | s_tdefl_len_sym [256] |
| static const mz_uint8 | s_tdefl_len_extra [256] |
| static const mz_uint8 | s_tdefl_small_dist_sym [512] |
| static const mz_uint8 | s_tdefl_small_dist_extra [512] |
| static const mz_uint8 | s_tdefl_large_dist_sym [128] |
| static const mz_uint8 | s_tdefl_large_dist_extra [128] |
| static mz_uint8 | s_tdefl_packed_code_size_syms_swizzle [] = { 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 } |
| static const mz_uint | mz_bitmasks [17] = { 0x0000, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x007F, 0x00FF, 0x01FF, 0x03FF, 0x07FF, 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF } |
| static const mz_uint | s_tdefl_num_probes [11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 } |
| #define adler32 mz_adler32 |
| #define alloc_func mz_alloc_func |
| #define compress mz_compress |
| #define compress2 mz_compress2 |
| #define compressBound mz_compressBound |
| #define crc32 mz_crc32 |
| #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 |
| #define inflate mz_inflate |
| #define inflateEnd mz_inflateEnd |
| #define inflateInit mz_inflateInit |
| #define inflateInit2 mz_inflateInit2 |
| #define internal_state mz_internal_state |
| #define MAX_MEM_LEVEL 9 |
| #define MAX_WBITS 15 |
| #define MINIZ_LITTLE_ENDIAN 1 |
| #define MZ_ADLER32_INIT (1) |
| #define MZ_ASSERT | ( | x | ) | assert(x) |
| #define MZ_CLEAR_OBJ | ( | obj | ) | memset(&(obj), 0, sizeof(obj)) |
| #define MZ_CRC32_INIT (0) |
| #define MZ_DEFAULT_WINDOW_BITS 15 |
| #define MZ_DEFLATED 8 |
| #define MZ_DELETE_FILE remove |
| #define MZ_FALSE (0) |
| #define MZ_FCLOSE fclose |
| #define MZ_FFLUSH fflush |
| #define MZ_FILE FILE |
| #define MZ_FILE_STAT stat |
| #define MZ_FILE_STAT_STRUCT stat |
| #define MZ_FOPEN | ( | f, | |
| m | |||
| ) | fopen(f, m) |
| #define MZ_FORCEINLINE inline |
| #define MZ_FREAD fread |
| #define MZ_FREE | ( | x | ) | free(x) |
| #define MZ_FREOPEN | ( | f, | |
| m, | |||
| s | |||
| ) | freopen(f, m, s) |
| #define MZ_FSEEK64 fseeko |
| #define MZ_FTELL64 ftello |
| #define MZ_FWRITE fwrite |
| #define MZ_MACRO_END while (0) |
| #define MZ_MALLOC | ( | x | ) | malloc(x) |
| #define MZ_MAX | ( | a, | |
| b | |||
| ) | (((a)>(b))?(a):(b)) |
| #define MZ_MIN | ( | a, | |
| b | |||
| ) | (((a)<(b))?(a):(b)) |
| #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_REALLOC | ( | p, | |
| x | |||
| ) | realloc(p, x) |
| #define MZ_SWAP_UINT32 | ( | a, | |
| b | |||
| ) | do { mz_uint32 t = a; a = b; b = t; } MZ_MACRO_END |
| #define MZ_TOLOWER | ( | c | ) | ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c)) |
| #define MZ_TRUE (1) |
| #define MZ_VER_MAJOR 9 |
| #define MZ_VER_MINOR 1 |
| #define MZ_VER_REVISION 15 |
| #define MZ_VER_SUBREVISION 0 |
| #define MZ_VERNUM 0x91F0 |
| #define MZ_VERSION "9.1.15" |
| #define MZ_WRITE_LE16 | ( | p, | |
| v | |||
| ) | mz_write_le16((mz_uint8 *)(p), (mz_uint16)(v)) |
| #define MZ_WRITE_LE32 | ( | p, | |
| v | |||
| ) | mz_write_le32((mz_uint8 *)(p), (mz_uint32)(v)) |
| #define MZ_ZIP_ARRAY_ELEMENT | ( | array_ptr, | |
| element_type, | |||
| index | |||
| ) | ((element_type *)((array_ptr)->m_p))[index] |
| #define MZ_ZIP_ARRAY_SET_ELEMENT_SIZE | ( | array_ptr, | |
| element_size | |||
| ) | (array_ptr)->m_element_size = element_size |
| #define TDEFL_LESS_MEMORY 0 |
| #define TDEFL_PROBE |
| #define TDEFL_PUT_BITS | ( | b, | |
| l | |||
| ) |
| #define TDEFL_RLE_PREV_CODE_SIZE | ( | ) |
| #define TDEFL_RLE_ZERO_CODE_SIZE | ( | ) |
| #define TINFL_BITBUF_SIZE (32) |
| #define TINFL_CR_BEGIN switch(r->m_state) { case 0: |
| #define TINFL_CR_FINISH } |
| #define TINFL_CR_RETURN | ( | state_index, | |
| result | |||
| ) | do { status = result; r->m_state = state_index; goto common_exit; case state_index:; } MZ_MACRO_END |
| #define TINFL_CR_RETURN_FOREVER | ( | state_index, | |
| result | |||
| ) | do { for ( ; ; ) { TINFL_CR_RETURN(state_index, result); } } MZ_MACRO_END |
| #define TINFL_DECOMPRESS_MEM_TO_MEM_FAILED ((size_t)(-1)) |
| #define tinfl_get_adler32 | ( | r | ) | (r)->m_check_adler32 |
| #define TINFL_GET_BITS | ( | state_index, | |
| b, | |||
| n | |||
| ) | do { if (num_bits < (mz_uint)(n)) { TINFL_NEED_BITS(state_index, n); } b = bit_buf & ((1 << (n)) - 1); bit_buf >>= (n); num_bits -= (n); } MZ_MACRO_END |
| #define TINFL_GET_BYTE | ( | state_index, | |
| c | |||
| ) |
| #define TINFL_HUFF_BITBUF_FILL | ( | state_index, | |
| pHuff | |||
| ) |
| #define TINFL_HUFF_DECODE | ( | state_index, | |
| sym, | |||
| pHuff | |||
| ) |
| #define tinfl_init | ( | r | ) | do { (r)->m_state = 0; } MZ_MACRO_END |
| #define TINFL_LZ_DICT_SIZE 32768 |
| #define TINFL_MEMCPY | ( | d, | |
| s, | |||
| l | |||
| ) | memcpy(d, s, l) |
| #define TINFL_MEMSET | ( | p, | |
| c, | |||
| l | |||
| ) | memset(p, c, l) |
| #define TINFL_NEED_BITS | ( | state_index, | |
| n | |||
| ) | do { mz_uint c; TINFL_GET_BYTE(state_index, c); bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); num_bits += 8; } while (num_bits < (mz_uint)(n)) |
| #define TINFL_SKIP_BITS | ( | state_index, | |
| n | |||
| ) | do { if (num_bits < (mz_uint)(n)) { TINFL_NEED_BITS(state_index, n); } bit_buf >>= (n); num_bits -= (n); } MZ_MACRO_END |
| #define uncompress mz_uncompress |
| #define Z_BEST_COMPRESSION MZ_BEST_COMPRESSION |
| #define Z_BEST_SPEED MZ_BEST_SPEED |
| #define Z_BLOCK MZ_BLOCK |
| #define Z_BUF_ERROR MZ_BUF_ERROR |
| #define Z_DATA_ERROR MZ_DATA_ERROR |
| #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 |
| #define Z_ERRNO MZ_ERRNO |
| #define Z_FILTERED MZ_FILTERED |
| #define Z_FINISH MZ_FINISH |
| #define Z_FIXED MZ_FIXED |
| #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_NULL 0 |
| #define Z_OK MZ_OK |
| #define Z_PARAM_ERROR MZ_PARAM_ERROR |
| #define Z_PARTIAL_FLUSH MZ_PARTIAL_FLUSH |
| #define Z_RLE MZ_RLE |
| #define Z_STREAM_END MZ_STREAM_END |
| #define Z_STREAM_ERROR MZ_STREAM_ERROR |
| #define Z_SYNC_FLUSH MZ_SYNC_FLUSH |
| #define Z_VERSION_ERROR MZ_VERSION_ERROR |
| #define zError mz_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_VERNUM MZ_VERNUM |
| #define ZLIB_VERSION MZ_VERSION |
| #define zlib_version mz_version() |
| #define zlibVersion mz_version |
| typedef unsigned char Byte |
| typedef char charf |
| typedef int intf |
| typedef void*(* mz_alloc_func) (void *opaque, size_t items, size_t size) |
| typedef int mz_bool |
| 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 void(* mz_free_func) (void *opaque, void *address) |
| typedef signed short mz_int16 |
| typedef long long mz_int64 |
| 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 int mz_uint |
| typedef unsigned short mz_uint16 |
| typedef unsigned int mz_uint32 |
| typedef unsigned long long mz_uint64 |
| typedef unsigned char mz_uint8 |
| typedef unsigned long mz_ulong |
| typedef unsigned char mz_validate_uint16[sizeof(mz_uint16)==2 ? 1 :-1] |
| typedef unsigned char mz_validate_uint32[sizeof(mz_uint32)==4 ? 1 :-1] |
| typedef unsigned char mz_validate_uint64[sizeof(mz_uint64)==8 ? 1 :-1] |
| typedef struct mz_zip_archive_tag mz_zip_archive |
| typedef struct mz_zip_internal_state_tag mz_zip_internal_state |
| typedef mz_uint32 tinfl_bit_buf_t |
| typedef struct tinfl_decompressor_tag tinfl_decompressor |
| typedef int(* tinfl_put_buf_func_ptr) (const void *pBuf, int len, void *pUser) |
| typedef unsigned int uInt |
| typedef void* voidp |
| typedef void* voidpf |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| enum mz_zip_flags |
| enum mz_zip_mode |
| enum tdefl_flush |
| enum tdefl_status |
| enum tinfl_status |
|
static |
References MZ_MALLOC.
Referenced by mz_deflateInit2(), mz_inflateInit2(), mz_zip_reader_init_internal(), and mz_zip_writer_init().

|
static |
References MZ_FREE.
Referenced by mz_deflateInit2(), mz_inflateInit2(), mz_zip_reader_init_internal(), and mz_zip_writer_init().

|
static |
References MZ_REALLOC.
Referenced by mz_zip_reader_init_internal(), and mz_zip_writer_init().

References MZ_ADLER32_INIT.
Referenced by tdefl_compress().

| int mz_compress2 | ( | unsigned char * | pDest, |
| mz_ulong * | pDest_len, | ||
| const unsigned char * | pSource, | ||
| mz_ulong | source_len, | ||
| int | level | ||
| ) |
References mz_stream_s::avail_in, mz_stream_s::avail_out, MZ_BUF_ERROR, mz_deflate(), mz_deflateEnd(), mz_deflateInit(), MZ_FINISH, MZ_OK, MZ_PARAM_ERROR, MZ_STREAM_END, mz_stream_s::next_in, mz_stream_s::next_out, and mz_stream_s::total_out.
Referenced by mz_compress().


References MZ_CRC32_INIT.
Referenced by mz_zip_reader_extract_to_callback(), mz_zip_reader_extract_to_mem_no_alloc(), mz_zip_writer_add_file(), mz_zip_writer_add_mem_ex(), and tdefl_write_image_to_png_file_in_memory_ex().

| int mz_deflate | ( | mz_streamp | pStream, |
| int | flush | ||
| ) |
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(), TDEFL_STATUS_DONE, mz_stream_s::total_in, and mz_stream_s::total_out.
Referenced by mz_compress2().


| mz_ulong mz_deflateBound | ( | mz_streamp | pStream, |
| mz_ulong | source_len | ||
| ) |
| int mz_deflateEnd | ( | mz_streamp | pStream | ) |
References MZ_OK, MZ_STREAM_ERROR, NULL, mz_stream_s::opaque, mz_stream_s::state, and mz_stream_s::zfree.
Referenced by mz_compress2(), and mz_deflateInit2().

| int mz_deflateInit | ( | mz_streamp | pStream, |
| int | level | ||
| ) |
References MZ_DEFAULT_STRATEGY, MZ_DEFAULT_WINDOW_BITS, MZ_DEFLATED, and mz_deflateInit2().
Referenced by mz_compress2().


| int mz_deflateInit2 | ( | mz_streamp | pStream, |
| int | level, | ||
| int | method, | ||
| int | window_bits, | ||
| int | mem_level, | ||
| int | strategy | ||
| ) |
References mz_stream_s::adler, mz_stream_s::data_type, def_alloc_func(), 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, NULL, mz_stream_s::opaque, mz_stream_s::reserved, mz_stream_s::state, TDEFL_COMPUTE_ADLER32, tdefl_create_comp_flags_from_zip_params(), tdefl_init(), TDEFL_STATUS_OKAY, mz_stream_s::total_in, mz_stream_s::total_out, mz_stream_s::zalloc, and mz_stream_s::zfree.
Referenced by mz_deflateInit().


| int mz_deflateReset | ( | mz_streamp | pStream | ) |
References MZ_OK, MZ_STREAM_ERROR, NULL, 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.

| const char * mz_error | ( | int | err | ) |
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, MZ_VERSION_ERROR, and NULL.
| void mz_free | ( | void * | p | ) |
References MZ_FREE.
| int mz_inflate | ( | mz_streamp | pStream, |
| int | flush | ||
| ) |
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_MIN, 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(), TINFL_FLAG_COMPUTE_ADLER32, TINFL_FLAG_HAS_MORE_INPUT, TINFL_FLAG_PARSE_ZLIB_HEADER, TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF, tinfl_get_adler32, TINFL_LZ_DICT_SIZE, TINFL_STATUS_DONE, TINFL_STATUS_FAILED, TINFL_STATUS_NEEDS_MORE_INPUT, mz_stream_s::total_in, and mz_stream_s::total_out.
Referenced by mz_uncompress().


| int mz_inflateEnd | ( | mz_streamp | pStream | ) |
References MZ_OK, MZ_STREAM_ERROR, NULL, mz_stream_s::opaque, mz_stream_s::state, and mz_stream_s::zfree.
Referenced by mz_uncompress().

| int mz_inflateInit | ( | mz_streamp | pStream | ) |
References MZ_DEFAULT_WINDOW_BITS, and mz_inflateInit2().
Referenced by mz_uncompress().


| int mz_inflateInit2 | ( | mz_streamp | pStream, |
| int | window_bits | ||
| ) |
References mz_stream_s::adler, mz_stream_s::data_type, def_alloc_func(), def_free_func(), 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, mz_stream_s::msg, MZ_DEFAULT_WINDOW_BITS, MZ_MEM_ERROR, MZ_OK, MZ_PARAM_ERROR, MZ_STREAM_ERROR, NULL, mz_stream_s::opaque, mz_stream_s::reserved, mz_stream_s::state, tinfl_init, TINFL_STATUS_NEEDS_MORE_INPUT, mz_stream_s::total_in, mz_stream_s::total_out, mz_stream_s::zalloc, and mz_stream_s::zfree.
Referenced by mz_inflateInit().


| int mz_uncompress | ( | unsigned char * | pDest, |
| mz_ulong * | pDest_len, | ||
| const unsigned char * | pSource, | ||
| mz_ulong | source_len | ||
| ) |
References mz_stream_s::avail_in, mz_stream_s::avail_out, MZ_BUF_ERROR, MZ_DATA_ERROR, MZ_FINISH, mz_inflate(), mz_inflateEnd(), mz_inflateInit(), MZ_OK, MZ_PARAM_ERROR, MZ_STREAM_END, mz_stream_s::next_in, mz_stream_s::next_out, and mz_stream_s::total_out.

| const char * mz_version | ( | void | ) |
References MZ_VERSION.
| 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 | ||
| ) |
References MZ_CLEAR_OBJ, MZ_DEFAULT_LEVEL, MZ_DELETE_FILE, MZ_FALSE, MZ_FILE_STAT, MZ_FILE_STAT_STRUCT, MZ_TRUE, MZ_UBER_COMPRESSION, MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY, mz_zip_reader_end(), mz_zip_reader_init_file(), mz_zip_writer_add_mem_ex(), mz_zip_writer_end(), mz_zip_writer_finalize_archive(), mz_zip_writer_init_file(), mz_zip_writer_init_from_reader(), and mz_zip_writer_validate_archive_name().

|
static |
References mz_zip_array::m_p, mz_zip_archive_tag::m_pAlloc_opaque, and mz_zip_archive_tag::m_pFree.
Referenced by mz_zip_reader_end(), and mz_zip_writer_end().

|
static |
References mz_zip_array::m_capacity, mz_zip_array::m_element_size, mz_zip_array::m_p, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pRealloc, MZ_ASSERT, MZ_FALSE, MZ_MAX, MZ_TRUE, and NULL.
Referenced by mz_zip_array_reserve(), and mz_zip_array_resize().

|
static |
References mz_zip_array::m_size, MZ_TRUE, and mz_zip_array_reserve().
Referenced by mz_zip_writer_add_mem_ex().


|
static |
References mz_zip_array::m_element_size, mz_zip_array::m_p, mz_zip_array::m_size, MZ_FALSE, MZ_TRUE, and mz_zip_array_resize().
Referenced by mz_zip_writer_add_from_zip_reader(), and mz_zip_writer_add_to_central_dir().


|
static |
References mz_zip_array::m_capacity, MZ_FALSE, MZ_TRUE, and mz_zip_array_ensure_capacity().
Referenced by mz_zip_array_ensure_room().


|
static |
References mz_zip_array::m_capacity, mz_zip_array::m_size, MZ_FALSE, MZ_TRUE, and mz_zip_array_ensure_capacity().
Referenced by mz_zip_array_push_back(), mz_zip_reader_read_central_dir(), mz_zip_writer_add_from_zip_reader(), and mz_zip_writer_add_to_central_dir().


|
static |
| void * mz_zip_extract_archive_file_to_heap | ( | const char * | pZip_filename, |
| const char * | pArchive_name, | ||
| size_t * | pSize, | ||
| mz_uint | zip_flags | ||
| ) |
References MZ_CLEAR_OBJ, MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY, mz_zip_reader_end(), mz_zip_reader_extract_to_heap(), mz_zip_reader_init_file(), mz_zip_reader_locate_file(), and NULL.

|
static |
References mz_zip_internal_state_tag::m_pFile, mz_zip_archive_tag::m_pState, MZ_FREAD, MZ_FSEEK64, MZ_FTELL64, and SEEK_SET.
Referenced by mz_zip_reader_init_file().

|
static |
References MZ_FILE, and MZ_FWRITE.
Referenced by mz_zip_reader_extract_to_file().

|
static |
References mz_zip_internal_state_tag::m_pFile, mz_zip_archive_tag::m_pState, MZ_FSEEK64, MZ_FTELL64, MZ_FWRITE, and SEEK_SET.
Referenced by mz_zip_writer_init_file(), and mz_zip_writer_init_from_reader().

|
static |
References MZ_FALSE, MZ_FILE_STAT, MZ_FILE_STAT_STRUCT, MZ_TRUE, and mz_zip_time_to_dos_time().
Referenced by mz_zip_writer_add_file().


|
static |
References mz_zip_internal_state_tag::m_mem_capacity, mz_zip_internal_state_tag::m_mem_size, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_internal_state_tag::m_pMem, mz_zip_archive_tag::m_pRealloc, mz_zip_archive_tag::m_pState, MZ_MAX, and NULL.
Referenced by mz_zip_writer_end(), mz_zip_writer_finalize_heap_archive(), mz_zip_writer_init_from_reader(), and mz_zip_writer_init_heap().

|
static |
References mz_zip_archive_tag::m_archive_size, mz_zip_internal_state_tag::m_pMem, mz_zip_archive_tag::m_pState, and MZ_MIN.
Referenced by mz_zip_reader_init_mem().

| mz_bool mz_zip_reader_end | ( | mz_zip_archive * | pZip | ) |
References mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_internal_state_tag::m_pFile, mz_zip_archive_tag::m_pFree, mz_zip_archive_tag::m_pState, mz_zip_internal_state_tag::m_sorted_central_dir_offsets, mz_zip_archive_tag::m_zip_mode, MZ_FALSE, MZ_FCLOSE, MZ_TRUE, mz_zip_array_clear(), MZ_ZIP_MODE_INVALID, MZ_ZIP_MODE_READING, and NULL.
Referenced by mz_zip_add_mem_to_archive_file_in_place(), mz_zip_extract_archive_file_to_heap(), mz_zip_reader_init(), mz_zip_reader_init_file(), mz_zip_reader_init_mem(), and mz_zip_writer_init_from_reader().


| 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 | ||
| ) |
References MZ_FALSE, mz_zip_reader_extract_to_callback(), mz_zip_reader_locate_file(), and NULL.

| mz_bool mz_zip_reader_extract_file_to_file | ( | mz_zip_archive * | pZip, |
| const char * | pArchive_filename, | ||
| const char * | pDst_filename, | ||
| mz_uint | flags | ||
| ) |
References MZ_FALSE, mz_zip_reader_extract_to_file(), mz_zip_reader_locate_file(), and NULL.

| void * mz_zip_reader_extract_file_to_heap | ( | mz_zip_archive * | pZip, |
| const char * | pFilename, | ||
| size_t * | pSize, | ||
| mz_uint | flags | ||
| ) |
References MZ_FALSE, mz_zip_reader_extract_to_heap(), mz_zip_reader_locate_file(), and NULL.

| 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 | ||
| ) |
References mz_zip_reader_extract_file_to_mem_no_alloc(), and NULL.

| 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 | ||
| ) |
References MZ_FALSE, mz_zip_reader_extract_to_mem_no_alloc(), mz_zip_reader_locate_file(), and NULL.
Referenced by mz_zip_reader_extract_file_to_mem().


| 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 | ||
| ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_archive_file_stat::m_bit_flag, mz_zip_archive_file_stat::m_comp_size, mz_zip_archive_file_stat::m_crc32, mz_zip_archive_file_stat::m_local_header_ofs, mz_zip_archive_file_stat::m_method, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pFree, mz_zip_archive_tag::m_pIO_opaque, mz_zip_internal_state_tag::m_pMem, mz_zip_archive_tag::m_pRead, mz_zip_archive_tag::m_pState, mz_zip_archive_file_stat::m_uncomp_size, mz_crc32(), MZ_CRC32_INIT, MZ_DEFLATED, MZ_FALSE, MZ_MIN, MZ_READ_LE16, MZ_READ_LE32, MZ_TRUE, MZ_ZIP_FLAG_COMPRESSED_DATA, MZ_ZIP_LDH_EXTRA_LEN_OFS, MZ_ZIP_LDH_FILENAME_LEN_OFS, MZ_ZIP_LOCAL_DIR_HEADER_SIG, MZ_ZIP_LOCAL_DIR_HEADER_SIZE, MZ_ZIP_MAX_IO_BUF_SIZE, mz_zip_reader_file_stat(), mz_zip_reader_is_file_a_directory(), NULL, tinfl_decompress(), TINFL_FLAG_HAS_MORE_INPUT, tinfl_init, TINFL_LZ_DICT_SIZE, TINFL_STATUS_DONE, TINFL_STATUS_FAILED, TINFL_STATUS_HAS_MORE_OUTPUT, and TINFL_STATUS_NEEDS_MORE_INPUT.
Referenced by mz_zip_reader_extract_file_to_callback(), and 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 | ||
| ) |
References mz_zip_archive_file_stat::m_time, MZ_FALSE, MZ_FCLOSE, MZ_FILE, MZ_FOPEN, mz_zip_file_write_callback(), mz_zip_reader_extract_to_callback(), mz_zip_reader_file_stat(), and mz_zip_set_file_times().
Referenced by mz_zip_reader_extract_file_to_file().


| void * mz_zip_reader_extract_to_heap | ( | mz_zip_archive * | pZip, |
| mz_uint | file_index, | ||
| size_t * | pSize, | ||
| mz_uint | flags | ||
| ) |
References mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pFree, MZ_READ_LE32, MZ_ZIP_CDH_COMPRESSED_SIZE_OFS, MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS, MZ_ZIP_FLAG_COMPRESSED_DATA, mz_zip_reader_extract_to_mem(), mz_zip_reader_get_cdh(), and NULL.
Referenced by mz_zip_extract_archive_file_to_heap(), and mz_zip_reader_extract_file_to_heap().


| 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 | ||
| ) |
References mz_zip_reader_extract_to_mem_no_alloc(), and NULL.
Referenced by mz_zip_reader_extract_to_heap().


| 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 | ||
| ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_archive_file_stat::m_bit_flag, mz_zip_archive_file_stat::m_comp_size, mz_zip_archive_file_stat::m_crc32, mz_zip_archive_file_stat::m_local_header_ofs, mz_zip_archive_file_stat::m_method, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pFree, mz_zip_archive_tag::m_pIO_opaque, mz_zip_internal_state_tag::m_pMem, mz_zip_archive_tag::m_pRead, mz_zip_archive_tag::m_pState, mz_zip_archive_file_stat::m_uncomp_size, mz_crc32(), MZ_CRC32_INIT, MZ_DEFLATED, MZ_FALSE, MZ_MIN, MZ_READ_LE16, MZ_READ_LE32, MZ_TRUE, MZ_ZIP_FLAG_COMPRESSED_DATA, MZ_ZIP_LDH_EXTRA_LEN_OFS, MZ_ZIP_LDH_FILENAME_LEN_OFS, MZ_ZIP_LOCAL_DIR_HEADER_SIG, MZ_ZIP_LOCAL_DIR_HEADER_SIZE, MZ_ZIP_MAX_IO_BUF_SIZE, mz_zip_reader_file_stat(), mz_zip_reader_is_file_a_directory(), NULL, tinfl_decompress(), TINFL_FLAG_HAS_MORE_INPUT, TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF, tinfl_init, TINFL_STATUS_DONE, TINFL_STATUS_FAILED, and TINFL_STATUS_NEEDS_MORE_INPUT.
Referenced by mz_zip_reader_extract_file_to_mem_no_alloc(), and mz_zip_reader_extract_to_mem().


| mz_bool mz_zip_reader_file_stat | ( | mz_zip_archive * | pZip, |
| mz_uint | file_index, | ||
| mz_zip_archive_file_stat * | pStat | ||
| ) |
References mz_zip_archive_file_stat::m_bit_flag, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_file_stat::m_central_dir_ofs, mz_zip_archive_file_stat::m_comment, mz_zip_archive_file_stat::m_comment_size, mz_zip_archive_file_stat::m_comp_size, mz_zip_archive_file_stat::m_crc32, mz_zip_archive_file_stat::m_external_attr, mz_zip_archive_file_stat::m_file_index, mz_zip_archive_file_stat::m_filename, mz_zip_archive_file_stat::m_internal_attr, mz_zip_archive_file_stat::m_local_header_ofs, mz_zip_archive_file_stat::m_method, mz_zip_archive_tag::m_pState, mz_zip_archive_file_stat::m_time, mz_zip_archive_file_stat::m_uncomp_size, mz_zip_archive_file_stat::m_version_made_by, mz_zip_archive_file_stat::m_version_needed, MZ_FALSE, MZ_MIN, MZ_READ_LE16, MZ_READ_LE32, MZ_TRUE, MZ_ZIP_ARRAY_ELEMENT, MZ_ZIP_CDH_BIT_FLAG_OFS, MZ_ZIP_CDH_COMMENT_LEN_OFS, MZ_ZIP_CDH_COMPRESSED_SIZE_OFS, MZ_ZIP_CDH_CRC32_OFS, MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS, MZ_ZIP_CDH_EXTERNAL_ATTR_OFS, MZ_ZIP_CDH_EXTRA_LEN_OFS, MZ_ZIP_CDH_FILE_DATE_OFS, MZ_ZIP_CDH_FILE_TIME_OFS, MZ_ZIP_CDH_FILENAME_LEN_OFS, MZ_ZIP_CDH_INTERNAL_ATTR_OFS, MZ_ZIP_CDH_LOCAL_HEADER_OFS, MZ_ZIP_CDH_METHOD_OFS, MZ_ZIP_CDH_VERSION_MADE_BY_OFS, MZ_ZIP_CDH_VERSION_NEEDED_OFS, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, mz_zip_dos_to_time_t(), MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE, MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE, and mz_zip_reader_get_cdh().
Referenced by mz_zip_reader_extract_to_callback(), mz_zip_reader_extract_to_file(), and mz_zip_reader_extract_to_mem_no_alloc().


|
static |
References MZ_MIN, MZ_READ_LE16, MZ_TOLOWER, MZ_ZIP_ARRAY_ELEMENT, MZ_ZIP_CDH_FILENAME_LEN_OFS, and MZ_ZIP_CENTRAL_DIR_HEADER_SIZE.
Referenced by mz_zip_reader_locate_file_binary_search().

|
static |
References MZ_MIN, MZ_READ_LE16, MZ_TOLOWER, MZ_ZIP_ARRAY_ELEMENT, MZ_ZIP_CDH_FILENAME_LEN_OFS, and MZ_ZIP_CENTRAL_DIR_HEADER_SIZE.
Referenced by mz_zip_reader_sort_central_dir_offsets_by_filename().

|
static |
References mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_total_files, mz_zip_archive_tag::m_zip_mode, MZ_ZIP_ARRAY_ELEMENT, MZ_ZIP_MODE_READING, and NULL.
Referenced by mz_zip_reader_extract_to_heap(), mz_zip_reader_file_stat(), mz_zip_reader_get_filename(), mz_zip_reader_is_file_a_directory(), mz_zip_reader_is_file_encrypted(), and mz_zip_writer_add_from_zip_reader().

| mz_uint mz_zip_reader_get_filename | ( | mz_zip_archive * | pZip, |
| mz_uint | file_index, | ||
| char * | pFilename, | ||
| mz_uint | filename_buf_size | ||
| ) |
References MZ_MIN, MZ_READ_LE16, MZ_ZIP_CDH_FILENAME_LEN_OFS, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, and mz_zip_reader_get_cdh().

| mz_uint mz_zip_reader_get_num_files | ( | mz_zip_archive * | pZip | ) |
References mz_zip_archive_tag::m_total_files.
| mz_bool mz_zip_reader_init | ( | mz_zip_archive * | pZip, |
| mz_uint64 | size, | ||
| mz_uint32 | flags | ||
| ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_archive_tag::m_pRead, MZ_FALSE, MZ_TRUE, mz_zip_reader_end(), mz_zip_reader_init_internal(), and mz_zip_reader_read_central_dir().

| mz_bool mz_zip_reader_init_file | ( | mz_zip_archive * | pZip, |
| const char * | pFilename, | ||
| mz_uint32 | flags | ||
| ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_internal_state_tag::m_pFile, mz_zip_archive_tag::m_pIO_opaque, mz_zip_archive_tag::m_pRead, mz_zip_archive_tag::m_pState, MZ_FALSE, MZ_FCLOSE, MZ_FILE, MZ_FOPEN, MZ_FSEEK64, MZ_FTELL64, MZ_TRUE, mz_zip_file_read_func(), mz_zip_reader_end(), mz_zip_reader_init_internal(), mz_zip_reader_read_central_dir(), and SEEK_END.
Referenced by mz_zip_add_mem_to_archive_file_in_place(), and mz_zip_extract_archive_file_to_heap().


|
static |
References def_alloc_func(), def_free_func(), def_realloc_func(), mz_zip_archive_tag::m_archive_size, mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_central_directory_file_ofs, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pFree, mz_zip_archive_tag::m_pRealloc, mz_zip_archive_tag::m_pState, mz_zip_internal_state_tag::m_sorted_central_dir_offsets, mz_zip_archive_tag::m_total_files, mz_zip_archive_tag::m_zip_mode, MZ_FALSE, MZ_TRUE, MZ_ZIP_ARRAY_SET_ELEMENT_SIZE, MZ_ZIP_MODE_INVALID, MZ_ZIP_MODE_READING, and NULL.
Referenced by mz_zip_reader_init(), mz_zip_reader_init_file(), and mz_zip_reader_init_mem().


| mz_bool mz_zip_reader_init_mem | ( | mz_zip_archive * | pZip, |
| const void * | pMem, | ||
| size_t | size, | ||
| mz_uint32 | flags | ||
| ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_internal_state_tag::m_mem_size, mz_zip_archive_tag::m_pIO_opaque, mz_zip_internal_state_tag::m_pMem, mz_zip_archive_tag::m_pRead, mz_zip_archive_tag::m_pState, MZ_FALSE, MZ_TRUE, mz_zip_mem_read_func(), mz_zip_reader_end(), mz_zip_reader_init_internal(), and mz_zip_reader_read_central_dir().

| mz_bool mz_zip_reader_is_file_a_directory | ( | mz_zip_archive * | pZip, |
| mz_uint | file_index | ||
| ) |
References MZ_FALSE, MZ_READ_LE16, MZ_READ_LE32, MZ_TRUE, MZ_ZIP_CDH_EXTERNAL_ATTR_OFS, MZ_ZIP_CDH_FILENAME_LEN_OFS, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, and mz_zip_reader_get_cdh().
Referenced by mz_zip_reader_extract_to_callback(), and mz_zip_reader_extract_to_mem_no_alloc().


| mz_bool mz_zip_reader_is_file_encrypted | ( | mz_zip_archive * | pZip, |
| mz_uint | file_index | ||
| ) |
References MZ_FALSE, MZ_READ_LE16, MZ_ZIP_CDH_BIT_FLAG_OFS, and mz_zip_reader_get_cdh().

| int mz_zip_reader_locate_file | ( | mz_zip_archive * | pZip, |
| const char * | pName, | ||
| const char * | pComment, | ||
| mz_uint | flags | ||
| ) |
References mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_pState, mz_zip_array::m_size, mz_zip_internal_state_tag::m_sorted_central_dir_offsets, mz_zip_archive_tag::m_total_files, mz_zip_archive_tag::m_zip_mode, MZ_READ_LE16, MZ_ZIP_ARRAY_ELEMENT, MZ_ZIP_CDH_COMMENT_LEN_OFS, MZ_ZIP_CDH_EXTRA_LEN_OFS, MZ_ZIP_CDH_FILENAME_LEN_OFS, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, MZ_ZIP_FLAG_CASE_SENSITIVE, MZ_ZIP_FLAG_IGNORE_PATH, MZ_ZIP_MODE_READING, mz_zip_reader_locate_file_binary_search(), and mz_zip_reader_string_equal().
Referenced by mz_zip_extract_archive_file_to_heap(), mz_zip_reader_extract_file_to_callback(), mz_zip_reader_extract_file_to_file(), mz_zip_reader_extract_file_to_heap(), and mz_zip_reader_extract_file_to_mem_no_alloc().


|
static |
References mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_pState, mz_zip_internal_state_tag::m_sorted_central_dir_offsets, mz_zip_archive_tag::m_total_files, MZ_ZIP_ARRAY_ELEMENT, and mz_zip_reader_filename_compare().
Referenced by mz_zip_reader_locate_file().


|
static |
References mz_zip_archive_tag::m_archive_size, mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_central_directory_file_ofs, mz_zip_array::m_p, mz_zip_archive_tag::m_pIO_opaque, mz_zip_archive_tag::m_pRead, mz_zip_archive_tag::m_pState, mz_zip_internal_state_tag::m_sorted_central_dir_offsets, mz_zip_archive_tag::m_total_files, MZ_FALSE, MZ_MAX, MZ_MIN, MZ_READ_LE16, MZ_READ_LE32, MZ_TRUE, MZ_ZIP_ARRAY_ELEMENT, mz_zip_array_resize(), MZ_ZIP_CDH_COMMENT_LEN_OFS, MZ_ZIP_CDH_COMPRESSED_SIZE_OFS, MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS, MZ_ZIP_CDH_DISK_START_OFS, MZ_ZIP_CDH_EXTRA_LEN_OFS, MZ_ZIP_CDH_FILENAME_LEN_OFS, MZ_ZIP_CDH_LOCAL_HEADER_OFS, MZ_ZIP_CDH_METHOD_OFS, MZ_ZIP_CENTRAL_DIR_HEADER_SIG, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, MZ_ZIP_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS, MZ_ZIP_ECDH_CDIR_OFS_OFS, MZ_ZIP_ECDH_CDIR_SIZE_OFS, MZ_ZIP_ECDH_CDIR_TOTAL_ENTRIES_OFS, MZ_ZIP_ECDH_NUM_DISK_CDIR_OFS, MZ_ZIP_ECDH_NUM_THIS_DISK_OFS, MZ_ZIP_ECDH_SIG_OFS, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE, MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY, MZ_ZIP_LOCAL_DIR_HEADER_SIZE, and mz_zip_reader_sort_central_dir_offsets_by_filename().
Referenced by mz_zip_reader_init(), mz_zip_reader_init_file(), and mz_zip_reader_init_mem().


|
static |
References mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_pState, mz_zip_internal_state_tag::m_sorted_central_dir_offsets, mz_zip_archive_tag::m_total_files, MZ_SWAP_UINT32, MZ_ZIP_ARRAY_ELEMENT, and mz_zip_reader_filename_less().
Referenced by mz_zip_reader_read_central_dir().


|
static |
References MZ_FALSE, MZ_TOLOWER, MZ_TRUE, and MZ_ZIP_FLAG_CASE_SENSITIVE.
Referenced by mz_zip_reader_locate_file().

|
static |
Referenced by mz_zip_get_file_modified_time(), and mz_zip_writer_add_mem_ex().

| 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 | ||
| ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_writer_add_state::m_comp_size, mz_zip_writer_add_state::m_cur_archive_file_ofs, mz_zip_archive_tag::m_file_offset_alignment, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pFree, mz_zip_archive_tag::m_pIO_opaque, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, mz_zip_writer_add_state::m_pZip, mz_zip_archive_tag::m_total_files, mz_zip_archive_tag::m_zip_mode, MZ_ASSERT, MZ_CLEAR_OBJ, mz_crc32(), MZ_CRC32_INIT, MZ_DEFAULT_LEVEL, MZ_DEFAULT_STRATEGY, MZ_DEFLATED, MZ_FALSE, MZ_FCLOSE, MZ_FILE, MZ_FOPEN, MZ_FREAD, MZ_FSEEK64, MZ_FTELL64, MZ_MIN, MZ_TRUE, MZ_UBER_COMPRESSION, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, MZ_ZIP_FLAG_COMPRESSED_DATA, mz_zip_get_file_modified_time(), MZ_ZIP_LOCAL_DIR_HEADER_SIZE, MZ_ZIP_MAX_IO_BUF_SIZE, MZ_ZIP_MODE_WRITING, mz_zip_writer_add_put_buf_callback(), mz_zip_writer_add_to_central_dir(), mz_zip_writer_compute_padding_needed_for_file_alignment(), mz_zip_writer_create_local_dir_header(), mz_zip_writer_validate_archive_name(), mz_zip_writer_write_zeros(), NULL, SEEK_END, SEEK_SET, tdefl_compress_buffer(), tdefl_create_comp_flags_from_zip_params(), TDEFL_FINISH, tdefl_init(), TDEFL_NO_FLUSH, TDEFL_STATUS_DONE, and TDEFL_STATUS_OKAY.

| mz_bool mz_zip_writer_add_from_zip_reader | ( | mz_zip_archive * | pZip, |
| mz_zip_archive * | pSource_zip, | ||
| mz_uint | file_index | ||
| ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_file_offset_alignment, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pFree, mz_zip_archive_tag::m_pIO_opaque, mz_zip_archive_tag::m_pRead, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, mz_zip_array::m_size, mz_zip_archive_tag::m_total_files, mz_zip_archive_tag::m_zip_mode, MZ_ASSERT, MZ_FALSE, MZ_MAX, MZ_MIN, MZ_READ_LE16, MZ_READ_LE32, MZ_TRUE, MZ_WRITE_LE32, mz_zip_array_push_back(), mz_zip_array_resize(), MZ_ZIP_CDH_COMMENT_LEN_OFS, MZ_ZIP_CDH_COMPRESSED_SIZE_OFS, MZ_ZIP_CDH_EXTRA_LEN_OFS, MZ_ZIP_CDH_FILENAME_LEN_OFS, MZ_ZIP_CDH_LOCAL_HEADER_OFS, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, MZ_ZIP_LDH_BIT_FLAG_OFS, MZ_ZIP_LDH_EXTRA_LEN_OFS, MZ_ZIP_LDH_FILENAME_LEN_OFS, MZ_ZIP_LOCAL_DIR_HEADER_SIG, MZ_ZIP_LOCAL_DIR_HEADER_SIZE, MZ_ZIP_MAX_IO_BUF_SIZE, MZ_ZIP_MODE_WRITING, mz_zip_reader_get_cdh(), mz_zip_writer_compute_padding_needed_for_file_alignment(), mz_zip_writer_write_zeros(), and NULL.

| 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 | ||
| ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_writer_add_state::m_comp_size, mz_zip_writer_add_state::m_cur_archive_file_ofs, mz_zip_archive_tag::m_file_offset_alignment, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pFree, mz_zip_archive_tag::m_pIO_opaque, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, mz_zip_writer_add_state::m_pZip, mz_zip_archive_tag::m_total_files, mz_zip_archive_tag::m_zip_mode, MZ_ASSERT, MZ_CLEAR_OBJ, mz_crc32(), MZ_CRC32_INIT, MZ_DEFAULT_LEVEL, MZ_DEFAULT_STRATEGY, MZ_DEFLATED, MZ_FALSE, MZ_TRUE, MZ_UBER_COMPRESSION, mz_zip_array_ensure_room(), MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, MZ_ZIP_FLAG_COMPRESSED_DATA, MZ_ZIP_LOCAL_DIR_HEADER_SIZE, MZ_ZIP_MODE_WRITING, mz_zip_time_to_dos_time(), mz_zip_writer_add_put_buf_callback(), mz_zip_writer_add_to_central_dir(), mz_zip_writer_compute_padding_needed_for_file_alignment(), mz_zip_writer_create_local_dir_header(), mz_zip_writer_validate_archive_name(), mz_zip_writer_write_zeros(), NULL, tdefl_compress_buffer(), tdefl_create_comp_flags_from_zip_params(), TDEFL_FINISH, tdefl_init(), TDEFL_STATUS_DONE, and TDEFL_STATUS_OKAY.
Referenced by mz_zip_add_mem_to_archive_file_in_place(), and mz_zip_writer_add_mem().


|
static |
References mz_zip_writer_add_state::m_comp_size, mz_zip_writer_add_state::m_cur_archive_file_ofs, mz_zip_archive_tag::m_pIO_opaque, mz_zip_archive_tag::m_pWrite, mz_zip_writer_add_state::m_pZip, MZ_FALSE, and MZ_TRUE.
Referenced by mz_zip_writer_add_file(), and mz_zip_writer_add_mem_ex().

|
static |
References mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_pState, mz_zip_array::m_size, MZ_FALSE, MZ_TRUE, mz_zip_array_push_back(), mz_zip_array_resize(), MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, and mz_zip_writer_create_central_dir_header().
Referenced by mz_zip_writer_add_file(), and mz_zip_writer_add_mem_ex().


|
static |
References mz_zip_archive_tag::m_archive_size, and mz_zip_archive_tag::m_file_offset_alignment.
Referenced by mz_zip_writer_add_file(), mz_zip_writer_add_from_zip_reader(), and mz_zip_writer_add_mem_ex().

|
static |
References MZ_TRUE, MZ_WRITE_LE16, MZ_WRITE_LE32, MZ_ZIP_CDH_BIT_FLAG_OFS, MZ_ZIP_CDH_COMMENT_LEN_OFS, MZ_ZIP_CDH_COMPRESSED_SIZE_OFS, MZ_ZIP_CDH_CRC32_OFS, MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS, MZ_ZIP_CDH_EXTERNAL_ATTR_OFS, MZ_ZIP_CDH_EXTRA_LEN_OFS, MZ_ZIP_CDH_FILE_DATE_OFS, MZ_ZIP_CDH_FILE_TIME_OFS, MZ_ZIP_CDH_FILENAME_LEN_OFS, MZ_ZIP_CDH_LOCAL_HEADER_OFS, MZ_ZIP_CDH_METHOD_OFS, MZ_ZIP_CDH_SIG_OFS, MZ_ZIP_CDH_VERSION_NEEDED_OFS, MZ_ZIP_CENTRAL_DIR_HEADER_SIG, and MZ_ZIP_CENTRAL_DIR_HEADER_SIZE.
Referenced by mz_zip_writer_add_to_central_dir().

|
static |
References MZ_TRUE, MZ_WRITE_LE16, MZ_WRITE_LE32, MZ_ZIP_LDH_BIT_FLAG_OFS, MZ_ZIP_LDH_COMPRESSED_SIZE_OFS, MZ_ZIP_LDH_CRC32_OFS, MZ_ZIP_LDH_DECOMPRESSED_SIZE_OFS, MZ_ZIP_LDH_EXTRA_LEN_OFS, MZ_ZIP_LDH_FILE_DATE_OFS, MZ_ZIP_LDH_FILE_TIME_OFS, MZ_ZIP_LDH_FILENAME_LEN_OFS, MZ_ZIP_LDH_METHOD_OFS, MZ_ZIP_LDH_SIG_OFS, MZ_ZIP_LDH_VERSION_NEEDED_OFS, MZ_ZIP_LOCAL_DIR_HEADER_SIG, and MZ_ZIP_LOCAL_DIR_HEADER_SIZE.
Referenced by mz_zip_writer_add_file(), and mz_zip_writer_add_mem_ex().

| mz_bool mz_zip_writer_end | ( | mz_zip_archive * | pZip | ) |
References mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_internal_state_tag::m_pFile, mz_zip_archive_tag::m_pFree, mz_zip_internal_state_tag::m_pMem, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, mz_zip_internal_state_tag::m_sorted_central_dir_offsets, mz_zip_archive_tag::m_zip_mode, MZ_FALSE, MZ_FCLOSE, MZ_TRUE, mz_zip_array_clear(), mz_zip_heap_write_func(), MZ_ZIP_MODE_INVALID, MZ_ZIP_MODE_WRITING, MZ_ZIP_MODE_WRITING_HAS_BEEN_FINALIZED, and NULL.
Referenced by mz_zip_add_mem_to_archive_file_in_place(), mz_zip_writer_init_file(), and mz_zip_writer_init_heap().


| mz_bool mz_zip_writer_finalize_archive | ( | mz_zip_archive * | pZip | ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_internal_state_tag::m_central_dir, mz_zip_archive_tag::m_central_directory_file_ofs, mz_zip_array::m_p, mz_zip_internal_state_tag::m_pFile, mz_zip_archive_tag::m_pIO_opaque, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, mz_zip_array::m_size, mz_zip_archive_tag::m_total_files, mz_zip_archive_tag::m_zip_mode, MZ_CLEAR_OBJ, MZ_FALSE, MZ_FFLUSH, MZ_TRUE, MZ_WRITE_LE16, MZ_WRITE_LE32, MZ_ZIP_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS, MZ_ZIP_ECDH_CDIR_OFS_OFS, MZ_ZIP_ECDH_CDIR_SIZE_OFS, MZ_ZIP_ECDH_CDIR_TOTAL_ENTRIES_OFS, MZ_ZIP_ECDH_SIG_OFS, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE, MZ_ZIP_MODE_WRITING, and MZ_ZIP_MODE_WRITING_HAS_BEEN_FINALIZED.
Referenced by mz_zip_add_mem_to_archive_file_in_place(), and mz_zip_writer_finalize_heap_archive().

| mz_bool mz_zip_writer_finalize_heap_archive | ( | mz_zip_archive * | pZip, |
| void ** | pBuf, | ||
| size_t * | pSize | ||
| ) |
References mz_zip_internal_state_tag::m_mem_capacity, mz_zip_internal_state_tag::m_mem_size, mz_zip_internal_state_tag::m_pMem, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, MZ_FALSE, MZ_TRUE, mz_zip_heap_write_func(), mz_zip_writer_finalize_archive(), and NULL.

| mz_bool mz_zip_writer_init | ( | mz_zip_archive * | pZip, |
| mz_uint64 | existing_size | ||
| ) |
References def_alloc_func(), def_free_func(), def_realloc_func(), mz_zip_archive_tag::m_archive_size, mz_zip_internal_state_tag::m_central_dir, mz_zip_internal_state_tag::m_central_dir_offsets, mz_zip_archive_tag::m_central_directory_file_ofs, mz_zip_archive_tag::m_file_offset_alignment, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pFree, mz_zip_archive_tag::m_pRealloc, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, mz_zip_internal_state_tag::m_sorted_central_dir_offsets, mz_zip_archive_tag::m_total_files, mz_zip_archive_tag::m_zip_mode, MZ_FALSE, MZ_TRUE, MZ_ZIP_ARRAY_SET_ELEMENT_SIZE, MZ_ZIP_MODE_INVALID, MZ_ZIP_MODE_WRITING, and NULL.
Referenced by mz_zip_writer_init_file(), and mz_zip_writer_init_heap().


| mz_bool mz_zip_writer_init_file | ( | mz_zip_archive * | pZip, |
| const char * | pFilename, | ||
| mz_uint64 | size_to_reserve_at_beginning | ||
| ) |
References mz_zip_internal_state_tag::m_pFile, mz_zip_archive_tag::m_pIO_opaque, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, MZ_CLEAR_OBJ, MZ_FALSE, MZ_FILE, MZ_FOPEN, MZ_MIN, MZ_TRUE, mz_zip_file_write_func(), mz_zip_writer_end(), mz_zip_writer_init(), and NULL.
Referenced by mz_zip_add_mem_to_archive_file_in_place().


| mz_bool mz_zip_writer_init_from_reader | ( | mz_zip_archive * | pZip, |
| const char * | pFilename | ||
| ) |
References mz_zip_archive_tag::m_archive_size, mz_zip_archive_tag::m_central_directory_file_ofs, mz_zip_internal_state_tag::m_mem_capacity, mz_zip_internal_state_tag::m_mem_size, mz_zip_internal_state_tag::m_pFile, mz_zip_archive_tag::m_pIO_opaque, mz_zip_internal_state_tag::m_pMem, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, mz_zip_archive_tag::m_total_files, mz_zip_archive_tag::m_zip_mode, MZ_FALSE, MZ_FREOPEN, MZ_TRUE, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, mz_zip_file_write_func(), mz_zip_heap_write_func(), MZ_ZIP_LOCAL_DIR_HEADER_SIZE, MZ_ZIP_MODE_READING, MZ_ZIP_MODE_WRITING, mz_zip_reader_end(), and NULL.
Referenced by mz_zip_add_mem_to_archive_file_in_place().


| mz_bool mz_zip_writer_init_heap | ( | mz_zip_archive * | pZip, |
| size_t | size_to_reserve_at_beginning, | ||
| size_t | initial_allocation_size | ||
| ) |
References mz_zip_internal_state_tag::m_mem_capacity, mz_zip_archive_tag::m_pAlloc, mz_zip_archive_tag::m_pAlloc_opaque, mz_zip_archive_tag::m_pIO_opaque, mz_zip_internal_state_tag::m_pMem, mz_zip_archive_tag::m_pState, mz_zip_archive_tag::m_pWrite, MZ_FALSE, MZ_MAX, MZ_TRUE, mz_zip_heap_write_func(), mz_zip_writer_end(), mz_zip_writer_init(), and NULL.

References MZ_FALSE, and MZ_TRUE.
Referenced by mz_zip_add_mem_to_archive_file_in_place(), mz_zip_writer_add_file(), and mz_zip_writer_add_mem_ex().

|
static |
References mz_zip_archive_tag::m_pIO_opaque, mz_zip_archive_tag::m_pWrite, MZ_FALSE, MZ_MIN, and MZ_TRUE.
Referenced by mz_zip_writer_add_file(), mz_zip_writer_add_from_zip_reader(), and mz_zip_writer_add_mem_ex().

|
static |
References tdefl_sym_freq::m_key.
Referenced by tdefl_optimize_huffman_table().

| 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 | ||
| ) |
References tdefl_compressor::m_adler32, tdefl_compressor::m_dict_size, tdefl_compressor::m_finished, tdefl_compressor::m_flags, tdefl_compressor::m_flush, tdefl_compressor::m_hash, tdefl_compressor::m_lookahead_size, tdefl_compressor::m_next, tdefl_compressor::m_out_buf_ofs, tdefl_compressor::m_output_flush_remaining, tdefl_compressor::m_pIn_buf, tdefl_compressor::m_pIn_buf_size, tdefl_compressor::m_pOut_buf, tdefl_compressor::m_pOut_buf_size, tdefl_compressor::m_pPut_buf_func, tdefl_compressor::m_prev_return_status, tdefl_compressor::m_pSrc, tdefl_compressor::m_src_buf_left, tdefl_compressor::m_wants_to_finish, mz_adler32(), MZ_CLEAR_OBJ, NULL, tdefl_compress_normal(), TDEFL_COMPUTE_ADLER32, TDEFL_FILTER_MATCHES, TDEFL_FINISH, tdefl_flush_block(), tdefl_flush_output_buffer(), TDEFL_FORCE_ALL_RAW_BLOCKS, TDEFL_FULL_FLUSH, TDEFL_GREEDY_PARSING_FLAG, TDEFL_MAX_PROBES_MASK, TDEFL_RLE_MATCHES, TDEFL_STATUS_BAD_PARAM, TDEFL_STATUS_OKAY, and TDEFL_WRITE_ZLIB_HEADER.
Referenced by mz_deflate(), and tdefl_compress_buffer().


|
static |
References tdefl_compress_lz_codes(), tdefl_start_dynamic_block(), and tdefl_start_static_block().
Referenced by tdefl_flush_block().


| tdefl_status tdefl_compress_buffer | ( | tdefl_compressor * | d, |
| const void * | pIn_buf, | ||
| size_t | in_buf_size, | ||
| tdefl_flush | flush | ||
| ) |
References tdefl_compressor::m_pPut_buf_func, MZ_ASSERT, NULL, and tdefl_compress().
Referenced by mz_zip_writer_add_file(), mz_zip_writer_add_mem_ex(), tdefl_compress_mem_to_output(), and tdefl_write_image_to_png_file_in_memory_ex().


|
static |
References tdefl_compressor::m_huff_code_sizes, tdefl_compressor::m_huff_codes, tdefl_compressor::m_lz_code_buf, tdefl_compressor::m_pOutput_buf, tdefl_compressor::m_pOutput_buf_end, MZ_ASSERT, mz_bitmasks, s_tdefl_large_dist_extra, s_tdefl_large_dist_sym, s_tdefl_len_extra, s_tdefl_len_sym, s_tdefl_small_dist_extra, s_tdefl_small_dist_sym, and TDEFL_PUT_BITS.
Referenced by tdefl_compress_block().

| void * tdefl_compress_mem_to_heap | ( | const void * | pSrc_buf, |
| size_t | src_buf_len, | ||
| size_t * | pOut_len, | ||
| int | flags | ||
| ) |
References tdefl_output_buffer::m_expandable, tdefl_output_buffer::m_pBuf, tdefl_output_buffer::m_size, MZ_CLEAR_OBJ, MZ_FALSE, MZ_TRUE, NULL, tdefl_compress_mem_to_output(), and tdefl_output_buffer_putter().

| 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 | ||
| ) |
References tdefl_output_buffer::m_capacity, tdefl_output_buffer::m_pBuf, tdefl_output_buffer::m_size, MZ_CLEAR_OBJ, tdefl_compress_mem_to_output(), and tdefl_output_buffer_putter().

| 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 | ||
| ) |
References MZ_FALSE, MZ_FREE, MZ_MALLOC, tdefl_compress_buffer(), TDEFL_FINISH, tdefl_init(), TDEFL_STATUS_DONE, and TDEFL_STATUS_OKAY.
Referenced by tdefl_compress_mem_to_heap(), and tdefl_compress_mem_to_mem().


|
static |
References tdefl_compressor::m_dict, tdefl_compressor::m_dict_size, tdefl_compressor::m_flags, tdefl_compressor::m_flush, tdefl_compressor::m_greedy_parsing, tdefl_compressor::m_hash, tdefl_compressor::m_lookahead_pos, tdefl_compressor::m_lookahead_size, tdefl_compressor::m_lz_code_buf, tdefl_compressor::m_next, tdefl_compressor::m_pLZ_code_buf, tdefl_compressor::m_pSrc, tdefl_compressor::m_saved_lit, tdefl_compressor::m_saved_match_dist, tdefl_compressor::m_saved_match_len, tdefl_compressor::m_src_buf_left, tdefl_compressor::m_total_lz_bytes, MZ_ASSERT, MZ_FALSE, MZ_MIN, MZ_TRUE, TDEFL_FILTER_MATCHES, tdefl_find_match(), tdefl_flush_block(), TDEFL_FORCE_ALL_RAW_BLOCKS, TDEFL_LZ_CODE_BUF_SIZE, TDEFL_LZ_DICT_SIZE, TDEFL_LZ_DICT_SIZE_MASK, TDEFL_LZ_HASH_SHIFT, TDEFL_LZ_HASH_SIZE, TDEFL_MAX_MATCH_LEN, TDEFL_MIN_MATCH_LEN, tdefl_record_literal(), tdefl_record_match(), and TDEFL_RLE_MATCHES.
Referenced by tdefl_compress().


| mz_uint tdefl_create_comp_flags_from_zip_params | ( | int | level, |
| int | window_bits, | ||
| int | strategy | ||
| ) |
References MZ_DEFAULT_LEVEL, MZ_FILTERED, MZ_FIXED, MZ_HUFFMAN_ONLY, MZ_MIN, MZ_RLE, s_tdefl_num_probes, TDEFL_FILTER_MATCHES, TDEFL_FORCE_ALL_RAW_BLOCKS, TDEFL_FORCE_ALL_STATIC_BLOCKS, TDEFL_GREEDY_PARSING_FLAG, TDEFL_MAX_PROBES_MASK, TDEFL_RLE_MATCHES, and TDEFL_WRITE_ZLIB_HEADER.
Referenced by mz_deflateInit2(), mz_zip_writer_add_file(), and mz_zip_writer_add_mem_ex().

|
static |
References tdefl_compressor::m_dict, tdefl_compressor::m_max_probes, MZ_ASSERT, TDEFL_LZ_DICT_SIZE_MASK, TDEFL_MAX_MATCH_LEN, and TDEFL_PROBE.
Referenced by tdefl_compress_normal().

|
static |
References tdefl_compressor::m_adler32, tdefl_compressor::m_bit_buffer, tdefl_compressor::m_bits_in, tdefl_compressor::m_block_index, tdefl_compressor::m_dict, tdefl_compressor::m_dict_size, tdefl_compressor::m_flags, tdefl_compressor::m_huff_count, tdefl_compressor::m_lookahead_pos, tdefl_compressor::m_lz_code_buf, tdefl_compressor::m_lz_code_buf_dict_pos, tdefl_compressor::m_num_flags_left, tdefl_compressor::m_out_buf_ofs, tdefl_compressor::m_output_buf, tdefl_compressor::m_output_flush_ofs, tdefl_compressor::m_output_flush_remaining, tdefl_compressor::m_pIn_buf, tdefl_compressor::m_pIn_buf_size, tdefl_compressor::m_pLZ_code_buf, tdefl_compressor::m_pLZ_flags, tdefl_compressor::m_pOut_buf, tdefl_compressor::m_pOut_buf_size, tdefl_compressor::m_pOutput_buf, tdefl_compressor::m_pOutput_buf_end, tdefl_compressor::m_pPut_buf_func, tdefl_compressor::m_pPut_buf_user, tdefl_compressor::m_prev_return_status, tdefl_compressor::m_pSrc, tdefl_compressor::m_total_lz_bytes, MZ_ASSERT, MZ_FALSE, MZ_MIN, MZ_TRUE, NULL, tdefl_compress_block(), TDEFL_FINISH, TDEFL_FORCE_ALL_RAW_BLOCKS, TDEFL_FORCE_ALL_STATIC_BLOCKS, TDEFL_LZ_DICT_SIZE_MASK, TDEFL_MAX_HUFF_SYMBOLS_0, TDEFL_MAX_HUFF_SYMBOLS_1, TDEFL_OUT_BUF_SIZE, TDEFL_PUT_BITS, TDEFL_STATUS_PUT_BUF_FAILED, and TDEFL_WRITE_ZLIB_HEADER.
Referenced by tdefl_compress(), and tdefl_compress_normal().


|
static |
References tdefl_compressor::m_finished, tdefl_compressor::m_out_buf_ofs, tdefl_compressor::m_output_buf, tdefl_compressor::m_output_flush_ofs, tdefl_compressor::m_output_flush_remaining, tdefl_compressor::m_pIn_buf, tdefl_compressor::m_pIn_buf_size, tdefl_compressor::m_pOut_buf, tdefl_compressor::m_pOut_buf_size, tdefl_compressor::m_pSrc, MZ_MIN, TDEFL_STATUS_DONE, and TDEFL_STATUS_OKAY.
Referenced by tdefl_compress().

| mz_uint32 tdefl_get_adler32 | ( | tdefl_compressor * | d | ) |
References tdefl_compressor::m_adler32.
Referenced by mz_deflate().

| tdefl_status tdefl_get_prev_return_status | ( | tdefl_compressor * | d | ) |
References tdefl_compressor::m_prev_return_status.
|
static |
References TDEFL_MAX_SUPPORTED_HUFF_CODESIZE.
Referenced by tdefl_optimize_huffman_table().

| tdefl_status tdefl_init | ( | tdefl_compressor * | d, |
| tdefl_put_buf_func_ptr | pPut_buf_func, | ||
| void * | pPut_buf_user, | ||
| int | flags | ||
| ) |
References tdefl_compressor::m_adler32, tdefl_compressor::m_bit_buffer, tdefl_compressor::m_bits_in, tdefl_compressor::m_block_index, tdefl_compressor::m_dict_size, tdefl_compressor::m_finished, tdefl_compressor::m_flags, tdefl_compressor::m_flush, tdefl_compressor::m_greedy_parsing, tdefl_compressor::m_hash, tdefl_compressor::m_huff_count, tdefl_compressor::m_lookahead_pos, tdefl_compressor::m_lookahead_size, tdefl_compressor::m_lz_code_buf, tdefl_compressor::m_lz_code_buf_dict_pos, tdefl_compressor::m_max_probes, tdefl_compressor::m_num_flags_left, tdefl_compressor::m_out_buf_ofs, tdefl_compressor::m_output_buf, tdefl_compressor::m_output_flush_ofs, tdefl_compressor::m_output_flush_remaining, tdefl_compressor::m_pIn_buf, tdefl_compressor::m_pIn_buf_size, tdefl_compressor::m_pLZ_code_buf, tdefl_compressor::m_pLZ_flags, tdefl_compressor::m_pOut_buf, tdefl_compressor::m_pOut_buf_size, tdefl_compressor::m_pOutput_buf, tdefl_compressor::m_pOutput_buf_end, tdefl_compressor::m_pPut_buf_func, tdefl_compressor::m_pPut_buf_user, tdefl_compressor::m_prev_return_status, tdefl_compressor::m_pSrc, tdefl_compressor::m_saved_lit, tdefl_compressor::m_saved_match_dist, tdefl_compressor::m_saved_match_len, tdefl_compressor::m_src_buf_left, tdefl_compressor::m_total_lz_bytes, tdefl_compressor::m_wants_to_finish, MZ_CLEAR_OBJ, NULL, TDEFL_GREEDY_PARSING_FLAG, TDEFL_MAX_HUFF_SYMBOLS_0, TDEFL_MAX_HUFF_SYMBOLS_1, TDEFL_NO_FLUSH, TDEFL_NONDETERMINISTIC_PARSING_FLAG, and TDEFL_STATUS_OKAY.
Referenced by mz_deflateInit2(), mz_deflateReset(), mz_zip_writer_add_file(), mz_zip_writer_add_mem_ex(), tdefl_compress_mem_to_output(), and tdefl_write_image_to_png_file_in_memory_ex().

|
static |
References tdefl_compressor::m_huff_code_sizes, tdefl_compressor::m_huff_codes, tdefl_compressor::m_huff_count, tdefl_sym_freq::m_key, tdefl_sym_freq::m_sym_index, MZ_CLEAR_OBJ, tdefl_calculate_minimum_redundancy(), tdefl_huffman_enforce_max_code_size(), TDEFL_MAX_HUFF_SYMBOLS, TDEFL_MAX_SUPPORTED_HUFF_CODESIZE, and tdefl_radix_sort_syms().
Referenced by tdefl_start_dynamic_block(), and tdefl_start_static_block().


References tdefl_output_buffer::m_capacity, tdefl_output_buffer::m_expandable, tdefl_output_buffer::m_pBuf, tdefl_output_buffer::m_size, MZ_FALSE, MZ_MAX, MZ_REALLOC, and MZ_TRUE.
Referenced by tdefl_compress_mem_to_heap(), tdefl_compress_mem_to_mem(), and tdefl_write_image_to_png_file_in_memory_ex().

|
static |
References tdefl_sym_freq::m_key, and MZ_CLEAR_OBJ.
Referenced by tdefl_optimize_huffman_table().

|
static |
References tdefl_compressor::m_huff_count, tdefl_compressor::m_num_flags_left, tdefl_compressor::m_pLZ_code_buf, tdefl_compressor::m_pLZ_flags, and tdefl_compressor::m_total_lz_bytes.
Referenced by tdefl_compress_normal().

|
static |
References tdefl_compressor::m_huff_count, tdefl_compressor::m_num_flags_left, tdefl_compressor::m_pLZ_code_buf, tdefl_compressor::m_pLZ_flags, tdefl_compressor::m_total_lz_bytes, MZ_ASSERT, s_tdefl_large_dist_sym, s_tdefl_len_sym, s_tdefl_small_dist_sym, TDEFL_LZ_DICT_SIZE, and TDEFL_MIN_MATCH_LEN.
Referenced by tdefl_compress_normal().

|
static |
References tdefl_compressor::m_huff_code_sizes, tdefl_compressor::m_huff_codes, tdefl_compressor::m_huff_count, MZ_ASSERT, MZ_FALSE, MZ_MAX, s_tdefl_packed_code_size_syms_swizzle, TDEFL_MAX_HUFF_SYMBOLS_0, TDEFL_MAX_HUFF_SYMBOLS_1, TDEFL_MAX_HUFF_SYMBOLS_2, tdefl_optimize_huffman_table(), TDEFL_PUT_BITS, TDEFL_RLE_PREV_CODE_SIZE, and TDEFL_RLE_ZERO_CODE_SIZE.
Referenced by tdefl_compress_block().


|
static |
References tdefl_compressor::m_huff_code_sizes, MZ_TRUE, tdefl_optimize_huffman_table(), and TDEFL_PUT_BITS.
Referenced by tdefl_compress_block().


| void * tdefl_write_image_to_png_file_in_memory | ( | const void * | pImage, |
| int | w, | ||
| int | h, | ||
| int | num_chans, | ||
| size_t * | pLen_out | ||
| ) |
References MZ_FALSE, and 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 | ||
| ) |
References tdefl_output_buffer::m_capacity, tdefl_output_buffer::m_expandable, tdefl_output_buffer::m_pBuf, tdefl_output_buffer::m_size, MZ_CLEAR_OBJ, mz_crc32(), MZ_CRC32_INIT, MZ_FREE, MZ_MALLOC, MZ_MAX, MZ_MIN, MZ_TRUE, NULL, tdefl_compress_buffer(), TDEFL_FINISH, tdefl_init(), TDEFL_NO_FLUSH, tdefl_output_buffer_putter(), TDEFL_STATUS_DONE, and TDEFL_WRITE_ZLIB_HEADER.
Referenced by tdefl_write_image_to_png_file_in_memory().


| 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 | ||
| ) |
References tinfl_decompressor_tag::m_bit_buf, tinfl_decompressor_tag::m_check_adler32, tinfl_huff_table::m_code_size, tinfl_decompressor_tag::m_counter, tinfl_decompressor_tag::m_dist, tinfl_decompressor_tag::m_dist_from_out_buf_start, tinfl_decompressor_tag::m_final, tinfl_decompressor_tag::m_len_codes, tinfl_huff_table::m_look_up, tinfl_decompressor_tag::m_num_bits, tinfl_decompressor_tag::m_num_extra, tinfl_decompressor_tag::m_raw_header, tinfl_decompressor_tag::m_table_sizes, tinfl_decompressor_tag::m_tables, tinfl_huff_table::m_tree, tinfl_decompressor_tag::m_type, tinfl_decompressor_tag::m_z_adler32, tinfl_decompressor_tag::m_zhdr0, tinfl_decompressor_tag::m_zhdr1, MZ_CLEAR_OBJ, MZ_MAX, MZ_MIN, MZ_READ_LE16, MZ_READ_LE32, TINFL_CR_BEGIN, TINFL_CR_FINISH, TINFL_CR_RETURN, TINFL_CR_RETURN_FOREVER, TINFL_FAST_LOOKUP_BITS, TINFL_FAST_LOOKUP_SIZE, TINFL_FLAG_COMPUTE_ADLER32, TINFL_FLAG_HAS_MORE_INPUT, TINFL_FLAG_PARSE_ZLIB_HEADER, TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF, TINFL_GET_BITS, TINFL_GET_BYTE, TINFL_HUFF_DECODE, TINFL_MEMCPY, TINFL_MEMSET, TINFL_SKIP_BITS, TINFL_STATUS_ADLER32_MISMATCH, TINFL_STATUS_BAD_PARAM, TINFL_STATUS_DONE, TINFL_STATUS_FAILED, TINFL_STATUS_HAS_MORE_OUTPUT, and TINFL_STATUS_NEEDS_MORE_INPUT.
Referenced by mz_inflate(), mz_zip_reader_extract_to_callback(), mz_zip_reader_extract_to_mem_no_alloc(), tinfl_decompress_mem_to_callback(), tinfl_decompress_mem_to_heap(), and tinfl_decompress_mem_to_mem().

| 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 | ||
| ) |
References MZ_FREE, MZ_MALLOC, tinfl_decompress(), TINFL_FLAG_HAS_MORE_INPUT, TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF, tinfl_init, TINFL_LZ_DICT_SIZE, TINFL_STATUS_DONE, TINFL_STATUS_FAILED, and TINFL_STATUS_HAS_MORE_OUTPUT.

| void * tinfl_decompress_mem_to_heap | ( | const void * | pSrc_buf, |
| size_t | src_buf_len, | ||
| size_t * | pOut_len, | ||
| int | flags | ||
| ) |
References MZ_FREE, MZ_REALLOC, NULL, tinfl_decompress(), TINFL_FLAG_HAS_MORE_INPUT, TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF, tinfl_init, TINFL_STATUS_DONE, and TINFL_STATUS_NEEDS_MORE_INPUT.

| 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 | ||
| ) |
References tinfl_decompress(), TINFL_DECOMPRESS_MEM_TO_MEM_FAILED, TINFL_FLAG_HAS_MORE_INPUT, TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF, tinfl_init, and TINFL_STATUS_DONE.

|
static |
Referenced by tdefl_compress_lz_codes().
Referenced by tdefl_compress_lz_codes().
Referenced by tdefl_compress_lz_codes(), and tdefl_record_match().
Referenced by tdefl_compress_lz_codes().
Referenced by tdefl_compress_lz_codes(), and tdefl_record_match().
Referenced by tdefl_create_comp_flags_from_zip_params().
|
static |
Referenced by tdefl_start_dynamic_block().
Referenced by tdefl_compress_lz_codes().
Referenced by tdefl_compress_lz_codes(), and tdefl_record_match().