CBMC
|
Go to the source code of this file.
Classes | |
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 | TDEFL_PUT_BITS(b, l) |
#define | TDEFL_RLE_PREV_CODE_SIZE() |
#define | TDEFL_RLE_ZERO_CODE_SIZE() |
#define | TDEFL_PROBE |
#define | TINFL_MEMCPY(d, s, l) memcpy(d, s, l) |
#define | TINFL_MEMSET(p, c, l) memset(p, c, l) |
#define | TINFL_CR_BEGIN |
#define | TINFL_CR_RETURN(state_index, result) |
#define | TINFL_CR_RETURN_FOREVER(state_index, result) |
#define | TINFL_CR_FINISH } |
#define | TINFL_GET_BYTE(state_index, c) |
#define | TINFL_NEED_BITS(state_index, n) |
#define | TINFL_SKIP_BITS(state_index, n) |
#define | TINFL_GET_BITS(state_index, b, n) |
#define | TINFL_HUFF_BITBUF_FILL(state_index, pHuff) |
#define | TINFL_HUFF_DECODE(state_index, sym, pHuff) |
#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) |
#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_WRITE_LE64(p, v) mz_write_le64((mz_uint8 *)(p), (mz_uint64)(v)) |
#define | MZ_ZIP64_MAX_LOCAL_EXTRA_FIELD_SIZE (sizeof(mz_uint16) * 2 + sizeof(mz_uint64) * 2) |
#define | MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE (sizeof(mz_uint16) * 2 + sizeof(mz_uint64) * 3) |
Typedefs | |
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 | |
mz_ulong | mz_adler32 (mz_ulong adler, const unsigned char *ptr, size_t buf_len) |
mz_ulong | mz_crc32 (mz_ulong crc, const mz_uint8 *ptr, size_t buf_len) |
void | mz_free (void *p) |
void * | miniz_def_alloc_func (void *opaque, size_t items, size_t size) |
void | miniz_def_free_func (void *opaque, void *address) |
void * | miniz_def_realloc_func (void *opaque, void *address, size_t items, size_t size) |
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_compress2 (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len, int level) |
int | mz_compress (unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len) |
mz_ulong | mz_compressBound (mz_ulong source_len) |
int | mz_inflateInit2 (mz_streamp pStream, int window_bits) |
int | mz_inflateInit (mz_streamp pStream) |
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) |
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 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 void | tdefl_record_literal (tdefl_compressor *d, mz_uint8 lit) |
static 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) |
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_init (tdefl_compressor *d, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags) |
tdefl_status | tdefl_get_prev_return_status (tdefl_compressor *d) |
mz_uint32 | tdefl_get_adler32 (tdefl_compressor *d) |
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) |
static mz_bool | tdefl_output_buffer_putter (const void *pBuf, int len, void *pUser) |
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) |
mz_uint | tdefl_create_comp_flags_from_zip_params (int level, int window_bits, int strategy) |
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) |
tdefl_compressor * | tdefl_compressor_alloc () |
void | tdefl_compressor_free (tdefl_compressor *pComp) |
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 * | 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_decompressor * | tinfl_decompressor_alloc () |
void | tinfl_decompressor_free (tinfl_decompressor *pDecomp) |
static void | mz_zip_array_init (mz_zip_array *pArray, mz_uint32 element_size) |
static 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_bool | mz_zip_array_reserve (mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_capacity, mz_uint growing) |
static mz_bool | mz_zip_array_resize (mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_size, mz_uint growing) |
static mz_bool | mz_zip_array_ensure_room (mz_zip_archive *pZip, mz_zip_array *pArray, size_t n) |
static 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_t_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, time_t *pTime) |
static mz_bool | mz_zip_set_file_times (const char *pFilename, time_t access_time, time_t modified_time) |
static mz_bool | mz_zip_set_error (mz_zip_archive *pZip, mz_zip_error err_num) |
static mz_bool | mz_zip_reader_init_internal (mz_zip_archive *pZip, mz_uint flags) |
static 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_locate_header_sig (mz_zip_archive *pZip, mz_uint32 record_sig, mz_uint32 record_size, mz_int64 *pOfs) |
static mz_bool | mz_zip_reader_read_central_dir (mz_zip_archive *pZip, mz_uint flags) |
void | mz_zip_zero_struct (mz_zip_archive *pZip) |
static mz_bool | mz_zip_reader_end_internal (mz_zip_archive *pZip, mz_bool set_last_error) |
mz_bool | mz_zip_reader_end (mz_zip_archive *pZip) |
mz_bool | mz_zip_reader_init (mz_zip_archive *pZip, mz_uint64 size, mz_uint flags) |
static size_t | mz_zip_mem_read_func (void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n) |
mz_bool | mz_zip_reader_init_mem (mz_zip_archive *pZip, const void *pMem, size_t size, mz_uint flags) |
static size_t | mz_zip_file_read_func (void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n) |
mz_bool | mz_zip_reader_init_file (mz_zip_archive *pZip, const char *pFilename, mz_uint32 flags) |
mz_bool | mz_zip_reader_init_file_v2 (mz_zip_archive *pZip, const char *pFilename, mz_uint flags, mz_uint64 file_start_ofs, mz_uint64 archive_size) |
mz_bool | mz_zip_reader_init_cfile (mz_zip_archive *pZip, FILE *pFile, mz_uint64 archive_size, mz_uint flags) |
static const mz_uint8 * | mz_zip_get_cdh (mz_zip_archive *pZip, mz_uint file_index) |
mz_bool | mz_zip_reader_is_file_encrypted (mz_zip_archive *pZip, mz_uint file_index) |
mz_bool | mz_zip_reader_is_file_supported (mz_zip_archive *pZip, mz_uint file_index) |
mz_bool | mz_zip_reader_is_file_a_directory (mz_zip_archive *pZip, mz_uint file_index) |
static mz_bool | mz_zip_file_stat_internal (mz_zip_archive *pZip, mz_uint file_index, const mz_uint8 *pCentral_dir_header, mz_zip_archive_file_stat *pStat, mz_bool *pFound_zip64_extra_data) |
static mz_bool | mz_zip_string_equal (const char *pA, const char *pB, mz_uint len, mz_uint flags) |
static int | mz_zip_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 mz_bool | mz_zip_locate_file_binary_search (mz_zip_archive *pZip, const char *pFilename, mz_uint32 *pIndex) |
int | mz_zip_reader_locate_file (mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags) |
mz_bool | mz_zip_reader_locate_file_v2 (mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags, mz_uint32 *pIndex) |
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) |
static size_t | mz_zip_file_write_callback (void *pOpaque, mz_uint64 ofs, const void *pBuf, size_t n) |
mz_bool | mz_zip_reader_extract_to_file (mz_zip_archive *pZip, mz_uint file_index, const char *pDst_filename, mz_uint flags) |
mz_bool | mz_zip_reader_extract_file_to_file (mz_zip_archive *pZip, const char *pArchive_filename, const char *pDst_filename, mz_uint flags) |
mz_bool | mz_zip_reader_extract_to_cfile (mz_zip_archive *pZip, mz_uint file_index, FILE *pFile, mz_uint flags) |
mz_bool | mz_zip_reader_extract_file_to_cfile (mz_zip_archive *pZip, const char *pArchive_filename, FILE *pFile, mz_uint flags) |
static size_t | mz_zip_compute_crc32_callback (void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) |
mz_bool | mz_zip_validate_file (mz_zip_archive *pZip, mz_uint file_index, mz_uint flags) |
mz_bool | mz_zip_validate_archive (mz_zip_archive *pZip, mz_uint flags) |
mz_bool | mz_zip_validate_mem_archive (const void *pMem, size_t size, mz_uint flags, mz_zip_error *pErr) |
mz_bool | mz_zip_validate_file_archive (const char *pFilename, mz_uint flags, mz_zip_error *pErr) |
static void | mz_write_le16 (mz_uint8 *p, mz_uint16 v) |
static void | mz_write_le32 (mz_uint8 *p, mz_uint32 v) |
static void | mz_write_le64 (mz_uint8 *p, mz_uint64 v) |
static size_t | mz_zip_heap_write_func (void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) |
static mz_bool | mz_zip_writer_end_internal (mz_zip_archive *pZip, mz_bool set_last_error) |
mz_bool | mz_zip_writer_init_v2 (mz_zip_archive *pZip, mz_uint64 existing_size, mz_uint flags) |
mz_bool | mz_zip_writer_init (mz_zip_archive *pZip, mz_uint64 existing_size) |
mz_bool | mz_zip_writer_init_heap_v2 (mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size, mz_uint flags) |
mz_bool | mz_zip_writer_init_heap (mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size) |
static size_t | mz_zip_file_write_func (void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) |
mz_bool | mz_zip_writer_init_file (mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_reserve_at_beginning) |
mz_bool | mz_zip_writer_init_file_v2 (mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_reserve_at_beginning, mz_uint flags) |
mz_bool | mz_zip_writer_init_cfile (mz_zip_archive *pZip, FILE *pFile, mz_uint flags) |
mz_bool | mz_zip_writer_init_from_reader_v2 (mz_zip_archive *pZip, const char *pFilename, mz_uint flags) |
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) |
static mz_bool | mz_zip_writer_add_put_buf_callback (const void *pBuf, int len, void *pUser) |
static mz_uint32 | mz_zip_writer_create_zip64_extra_data (mz_uint8 *pBuf, mz_uint64 *pUncomp_size, mz_uint64 *pComp_size, mz_uint64 *pLocal_header_ofs) |
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, const char *user_extra_data, mz_uint user_extra_data_len) |
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) |
mz_bool | mz_zip_writer_add_mem_ex (mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, mz_uint64 uncomp_size, mz_uint32 uncomp_crc32) |
mz_bool | mz_zip_writer_add_mem_ex_v2 (mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, mz_uint64 uncomp_size, mz_uint32 uncomp_crc32, time_t *last_modified, const char *user_extra_data, mz_uint user_extra_data_len, const char *user_extra_data_central, mz_uint user_extra_data_central_len) |
mz_bool | mz_zip_writer_add_cfile (mz_zip_archive *pZip, const char *pArchive_name, FILE *pSrc_file, mz_uint64 size_to_add, const time_t *pFile_time, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, const char *user_extra_data, mz_uint user_extra_data_len, const char *user_extra_data_central, mz_uint user_extra_data_central_len) |
mz_bool | mz_zip_writer_add_file (mz_zip_archive *pZip, const char *pArchive_name, const char *pSrc_filename, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags) |
static mz_bool | mz_zip_writer_update_zip64_extension_block (mz_zip_array *pNew_ext, mz_zip_archive *pZip, const mz_uint8 *pExt, uint32_t ext_len, mz_uint64 *pComp_size, mz_uint64 *pUncomp_size, mz_uint64 *pLocal_header_ofs, mz_uint32 *pDisk_start) |
mz_bool | mz_zip_writer_add_from_zip_reader (mz_zip_archive *pZip, mz_zip_archive *pSource_zip, mz_uint src_file_index) |
mz_bool | mz_zip_writer_finalize_archive (mz_zip_archive *pZip) |
mz_bool | mz_zip_writer_finalize_heap_archive (mz_zip_archive *pZip, void **ppBuf, size_t *pSize) |
mz_bool | mz_zip_writer_end (mz_zip_archive *pZip) |
mz_bool | mz_zip_add_mem_to_archive_file_in_place (const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags) |
mz_bool | mz_zip_add_mem_to_archive_file_in_place_v2 (const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, mz_zip_error *pErr) |
void * | mz_zip_extract_archive_file_to_heap_v2 (const char *pZip_filename, const char *pArchive_name, const char *pComment, size_t *pSize, mz_uint flags, mz_zip_error *pErr) |
void * | mz_zip_extract_archive_file_to_heap (const char *pZip_filename, const char *pArchive_name, size_t *pSize, mz_uint flags) |
mz_zip_mode | mz_zip_get_mode (mz_zip_archive *pZip) |
mz_zip_type | mz_zip_get_type (mz_zip_archive *pZip) |
mz_zip_error | mz_zip_set_last_error (mz_zip_archive *pZip, mz_zip_error err_num) |
mz_zip_error | mz_zip_peek_last_error (mz_zip_archive *pZip) |
mz_zip_error | mz_zip_clear_last_error (mz_zip_archive *pZip) |
mz_zip_error | mz_zip_get_last_error (mz_zip_archive *pZip) |
const char * | mz_zip_get_error_string (mz_zip_error mz_err) |
mz_bool | mz_zip_is_zip64 (mz_zip_archive *pZip) |
size_t | mz_zip_get_central_dir_size (mz_zip_archive *pZip) |
mz_uint | mz_zip_reader_get_num_files (mz_zip_archive *pZip) |
mz_uint64 | mz_zip_get_archive_size (mz_zip_archive *pZip) |
mz_uint64 | mz_zip_get_archive_file_start_offset (mz_zip_archive *pZip) |
FILE * | mz_zip_get_cfile (mz_zip_archive *pZip) |
size_t | mz_zip_read_archive_data (mz_zip_archive *pZip, mz_uint64 file_ofs, void *pBuf, size_t n) |
mz_uint | mz_zip_reader_get_filename (mz_zip_archive *pZip, mz_uint file_index, char *pFilename, mz_uint filename_buf_size) |
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_end (mz_zip_archive *pZip) |
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 MZ_SWAP_UINT32 | ( | a, | |
b | |||
) |
#define MZ_TOLOWER | ( | c | ) | ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c)) |
#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_WRITE_LE64 | ( | p, | |
v | |||
) | mz_write_le64((mz_uint8 *)(p), (mz_uint64)(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_PROBE |
#define TDEFL_PUT_BITS | ( | b, | |
l | |||
) |
#define TDEFL_RLE_PREV_CODE_SIZE | ( | ) |
#define TDEFL_RLE_ZERO_CODE_SIZE | ( | ) |
#define TINFL_CR_BEGIN |
#define TINFL_CR_RETURN | ( | state_index, | |
result | |||
) |
#define TINFL_CR_RETURN_FOREVER | ( | state_index, | |
result | |||
) |
#define TINFL_GET_BITS | ( | state_index, | |
b, | |||
n | |||
) |
#define TINFL_GET_BYTE | ( | state_index, | |
c | |||
) |
#define TINFL_HUFF_BITBUF_FILL | ( | state_index, | |
pHuff | |||
) |
#define TINFL_NEED_BITS | ( | state_index, | |
n | |||
) |
#define TINFL_SKIP_BITS | ( | state_index, | |
n | |||
) |
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] |
anonymous enum |
anonymous enum |
void* miniz_def_alloc_func | ( | void * | opaque, |
size_t | items, | ||
size_t | size | ||
) |
void miniz_def_free_func | ( | void * | opaque, |
void * | address | ||
) |
void* miniz_def_realloc_func | ( | void * | opaque, |
void * | address, | ||
size_t | items, | ||
size_t | size | ||
) |
int mz_deflate | ( | mz_streamp | pStream, |
int | flush | ||
) |
mz_ulong mz_deflateBound | ( | mz_streamp | pStream, |
mz_ulong | source_len | ||
) |
int mz_deflateEnd | ( | mz_streamp | pStream | ) |
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_inflate | ( | mz_streamp | pStream, |
int | flush | ||
) |
int mz_inflateEnd | ( | mz_streamp | pStream | ) |
int mz_inflateInit | ( | mz_streamp | pStream | ) |
int mz_inflateInit2 | ( | mz_streamp | pStream, |
int | window_bits | ||
) |
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 | ||
) |
|
inlinestatic |
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
mz_zip_error mz_zip_clear_last_error | ( | mz_zip_archive * | pZip | ) |
|
static |
|
static |
mz_bool mz_zip_end | ( | mz_zip_archive * | pZip | ) |
void* mz_zip_extract_archive_file_to_heap | ( | const char * | pZip_filename, |
const char * | pArchive_name, | ||
size_t * | pSize, | ||
mz_uint | flags | ||
) |
void* mz_zip_extract_archive_file_to_heap_v2 | ( | const char * | pZip_filename, |
const char * | pArchive_name, | ||
const char * | pComment, | ||
size_t * | pSize, | ||
mz_uint | flags, | ||
mz_zip_error * | pErr | ||
) |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
mz_uint64 mz_zip_get_archive_file_start_offset | ( | mz_zip_archive * | pZip | ) |
mz_uint64 mz_zip_get_archive_size | ( | mz_zip_archive * | pZip | ) |
|
inlinestatic |
size_t mz_zip_get_central_dir_size | ( | mz_zip_archive * | pZip | ) |
FILE* mz_zip_get_cfile | ( | mz_zip_archive * | pZip | ) |
const char* mz_zip_get_error_string | ( | mz_zip_error | mz_err | ) |
|
static |
mz_zip_error mz_zip_get_last_error | ( | mz_zip_archive * | pZip | ) |
mz_zip_mode mz_zip_get_mode | ( | mz_zip_archive * | pZip | ) |
mz_zip_type mz_zip_get_type | ( | mz_zip_archive * | pZip | ) |
|
static |
mz_bool mz_zip_is_zip64 | ( | mz_zip_archive * | pZip | ) |
|
static |
|
static |
mz_zip_error mz_zip_peek_last_error | ( | mz_zip_archive * | pZip | ) |
size_t mz_zip_read_archive_data | ( | mz_zip_archive * | pZip, |
mz_uint64 | file_ofs, | ||
void * | pBuf, | ||
size_t | n | ||
) |
mz_bool mz_zip_reader_end | ( | mz_zip_archive * | pZip | ) |
|
static |
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_file_to_cfile | ( | mz_zip_archive * | pZip, |
const char * | pArchive_filename, | ||
FILE * | pFile, | ||
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 | ||
) |
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_file_to_mem | ( | mz_zip_archive * | pZip, |
const char * | pFilename, | ||
void * | pBuf, | ||
size_t | buf_size, | ||
mz_uint | flags | ||
) |
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_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_to_cfile | ( | mz_zip_archive * | pZip, |
mz_uint | file_index, | ||
FILE * | pFile, | ||
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 | ||
) |
void* mz_zip_reader_extract_to_heap | ( | mz_zip_archive * | pZip, |
mz_uint | file_index, | ||
size_t * | pSize, | ||
mz_uint | flags | ||
) |
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_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_file_stat | ( | mz_zip_archive * | pZip, |
mz_uint | file_index, | ||
mz_zip_archive_file_stat * | pStat | ||
) |
|
inlinestatic |
mz_uint mz_zip_reader_get_filename | ( | mz_zip_archive * | pZip, |
mz_uint | file_index, | ||
char * | pFilename, | ||
mz_uint | filename_buf_size | ||
) |
mz_uint mz_zip_reader_get_num_files | ( | mz_zip_archive * | pZip | ) |
mz_bool mz_zip_reader_init | ( | mz_zip_archive * | pZip, |
mz_uint64 | size, | ||
mz_uint | flags | ||
) |
mz_bool mz_zip_reader_init_cfile | ( | mz_zip_archive * | pZip, |
FILE * | pFile, | ||
mz_uint64 | archive_size, | ||
mz_uint | flags | ||
) |
mz_bool mz_zip_reader_init_file | ( | mz_zip_archive * | pZip, |
const char * | pFilename, | ||
mz_uint32 | flags | ||
) |
mz_bool mz_zip_reader_init_file_v2 | ( | mz_zip_archive * | pZip, |
const char * | pFilename, | ||
mz_uint | flags, | ||
mz_uint64 | file_start_ofs, | ||
mz_uint64 | archive_size | ||
) |
|
static |
mz_bool mz_zip_reader_init_mem | ( | mz_zip_archive * | pZip, |
const void * | pMem, | ||
size_t | size, | ||
mz_uint | flags | ||
) |
mz_bool mz_zip_reader_is_file_a_directory | ( | mz_zip_archive * | pZip, |
mz_uint | file_index | ||
) |
mz_bool mz_zip_reader_is_file_encrypted | ( | mz_zip_archive * | pZip, |
mz_uint | file_index | ||
) |
mz_bool mz_zip_reader_is_file_supported | ( | mz_zip_archive * | pZip, |
mz_uint | file_index | ||
) |
int mz_zip_reader_locate_file | ( | mz_zip_archive * | pZip, |
const char * | pName, | ||
const char * | pComment, | ||
mz_uint | flags | ||
) |
mz_bool mz_zip_reader_locate_file_v2 | ( | mz_zip_archive * | pZip, |
const char * | pName, | ||
const char * | pComment, | ||
mz_uint | flags, | ||
mz_uint32 * | pIndex | ||
) |
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
mz_zip_error mz_zip_set_last_error | ( | mz_zip_archive * | pZip, |
mz_zip_error | err_num | ||
) |
mz_bool mz_zip_validate_archive | ( | mz_zip_archive * | pZip, |
mz_uint | flags | ||
) |
mz_bool mz_zip_validate_file | ( | mz_zip_archive * | pZip, |
mz_uint | file_index, | ||
mz_uint | flags | ||
) |
mz_bool mz_zip_validate_file_archive | ( | const char * | pFilename, |
mz_uint | flags, | ||
mz_zip_error * | pErr | ||
) |
mz_bool mz_zip_validate_mem_archive | ( | const void * | pMem, |
size_t | size, | ||
mz_uint | flags, | ||
mz_zip_error * | pErr | ||
) |
mz_bool mz_zip_writer_add_cfile | ( | mz_zip_archive * | pZip, |
const char * | pArchive_name, | ||
FILE * | pSrc_file, | ||
mz_uint64 | size_to_add, | ||
const time_t * | pFile_time, | ||
const void * | pComment, | ||
mz_uint16 | comment_size, | ||
mz_uint | level_and_flags, | ||
const char * | user_extra_data, | ||
mz_uint | user_extra_data_len, | ||
const char * | user_extra_data_central, | ||
mz_uint | user_extra_data_central_len | ||
) |
mz_bool mz_zip_writer_add_file | ( | mz_zip_archive * | pZip, |
const char * | pArchive_name, | ||
const char * | pSrc_filename, | ||
const void * | pComment, | ||
mz_uint16 | comment_size, | ||
mz_uint | level_and_flags | ||
) |
mz_bool mz_zip_writer_add_from_zip_reader | ( | mz_zip_archive * | pZip, |
mz_zip_archive * | pSource_zip, | ||
mz_uint | src_file_index | ||
) |
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_v2 | ( | mz_zip_archive * | pZip, |
const char * | pArchive_name, | ||
const void * | pBuf, | ||
size_t | buf_size, | ||
const void * | pComment, | ||
mz_uint16 | comment_size, | ||
mz_uint | level_and_flags, | ||
mz_uint64 | uncomp_size, | ||
mz_uint32 | uncomp_crc32, | ||
time_t * | last_modified, | ||
const char * | user_extra_data, | ||
mz_uint | user_extra_data_len, | ||
const char * | user_extra_data_central, | ||
mz_uint | user_extra_data_central_len | ||
) |
|
static |
|
static |
|
static |
|
static |
mz_bool mz_zip_writer_end | ( | mz_zip_archive * | pZip | ) |
|
static |
mz_bool mz_zip_writer_finalize_archive | ( | mz_zip_archive * | pZip | ) |
mz_bool mz_zip_writer_finalize_heap_archive | ( | mz_zip_archive * | pZip, |
void ** | ppBuf, | ||
size_t * | pSize | ||
) |
mz_bool mz_zip_writer_init | ( | mz_zip_archive * | pZip, |
mz_uint64 | existing_size | ||
) |
mz_bool mz_zip_writer_init_cfile | ( | mz_zip_archive * | pZip, |
FILE * | pFile, | ||
mz_uint | flags | ||
) |
mz_bool mz_zip_writer_init_file | ( | mz_zip_archive * | pZip, |
const char * | pFilename, | ||
mz_uint64 | size_to_reserve_at_beginning | ||
) |
mz_bool mz_zip_writer_init_file_v2 | ( | mz_zip_archive * | pZip, |
const char * | pFilename, | ||
mz_uint64 | size_to_reserve_at_beginning, | ||
mz_uint | flags | ||
) |
mz_bool mz_zip_writer_init_from_reader | ( | mz_zip_archive * | pZip, |
const char * | pFilename | ||
) |
mz_bool mz_zip_writer_init_from_reader_v2 | ( | mz_zip_archive * | pZip, |
const char * | pFilename, | ||
mz_uint | flags | ||
) |
mz_bool mz_zip_writer_init_heap | ( | mz_zip_archive * | pZip, |
size_t | size_to_reserve_at_beginning, | ||
size_t | initial_allocation_size | ||
) |
mz_bool mz_zip_writer_init_heap_v2 | ( | mz_zip_archive * | pZip, |
size_t | size_to_reserve_at_beginning, | ||
size_t | initial_allocation_size, | ||
mz_uint | flags | ||
) |
mz_bool mz_zip_writer_init_v2 | ( | mz_zip_archive * | pZip, |
mz_uint64 | existing_size, | ||
mz_uint | flags | ||
) |
|
static |
|
static |
|
static |
void mz_zip_zero_struct | ( | mz_zip_archive * | pZip | ) |
|
static |
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 | ||
) |
|
static |
tdefl_status tdefl_compress_buffer | ( | tdefl_compressor * | d, |
const void * | pIn_buf, | ||
size_t | in_buf_size, | ||
tdefl_flush | flush | ||
) |
|
static |
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 | ||
) |
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 | ||
) |
|
static |
tdefl_compressor* tdefl_compressor_alloc | ( | ) |
void tdefl_compressor_free | ( | tdefl_compressor * | pComp | ) |
mz_uint tdefl_create_comp_flags_from_zip_params | ( | int | level, |
int | window_bits, | ||
int | strategy | ||
) |
|
static |
|
static |
mz_uint32 tdefl_get_adler32 | ( | tdefl_compressor * | d | ) |
tdefl_status tdefl_get_prev_return_status | ( | tdefl_compressor * | d | ) |
|
static |
tdefl_status tdefl_init | ( | tdefl_compressor * | d, |
tdefl_put_buf_func_ptr | pPut_buf_func, | ||
void * | pPut_buf_user, | ||
int | flags | ||
) |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
void* tdefl_write_image_to_png_file_in_memory | ( | const void * | pImage, |
int | w, | ||
int | h, | ||
int | num_chans, | ||
size_t * | pLen_out | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
tinfl_decompressor* tinfl_decompressor_alloc | ( | ) |
void tinfl_decompressor_free | ( | tinfl_decompressor * | pDecomp | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |