libMVRgdtf 40bc00a
A library for GDTF and MVR
|
#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 |
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_HEADER_INCLUDED |
#define | MINIZ_LITTLE_ENDIAN 1 |
#define | MZ_ADLER32_INIT (1) |
#define | MZ_CRC32_INIT (0) |
#define | MZ_DEFLATED 8 |
#define | MZ_VERSION "9.1.14" |
#define | MZ_VERNUM 0x91E0 |
#define | MZ_VER_MAJOR 9 |
#define | MZ_VER_MINOR 1 |
#define | MZ_VER_REVISION 14 |
#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 fopen |
#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 freopen |
#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 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 | |
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) |
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) |
#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_HEADER_INCLUDED |
#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 fopen |
#define MZ_FORCEINLINE inline |
#define MZ_FREAD fread |
#define MZ_FREE | ( | x | ) | free(x) |
#define MZ_FREOPEN freopen |
#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 14 |
#define MZ_VER_SUBREVISION 0 |
#define MZ_VERNUM 0x91E0 |
#define MZ_VERSION "9.1.14" |
#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 mz_stream |
#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_internal_state_tag mz_zip_internal_state |
typedef mz_bool(* tdefl_put_buf_func_ptr) (const void *pBuf, int len, void *pUser) |
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* const voidpc |
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 |
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 | ||
) |
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 | ) |
const char * mz_error | ( | int | err | ) |
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 | ||
) |
int mz_uncompress | ( | unsigned char * | pDest, |
mz_ulong * | pDest_len, | ||
const unsigned char * | pSource, | ||
mz_ulong | source_len | ||
) |
const char * mz_version | ( | void | ) |
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 | ||
) |
mz_bool mz_zip_reader_end | ( | mz_zip_archive * | pZip | ) |
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_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_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 | ||
) |
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_uint32 | flags | ||
) |
mz_bool mz_zip_reader_init_file | ( | mz_zip_archive * | pZip, |
const char * | pFilename, | ||
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_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 | ||
) |
int mz_zip_reader_locate_file | ( | mz_zip_archive * | pZip, |
const char * | pName, | ||
const char * | pComment, | ||
mz_uint | flags | ||
) |
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_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_end | ( | mz_zip_archive * | pZip | ) |
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_init | ( | mz_zip_archive * | pZip, |
mz_uint64 | existing_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_init_heap | ( | mz_zip_archive * | pZip, |
size_t | size_to_reserve_at_beginning, | ||
size_t | initial_allocation_size | ||
) |
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 | ||
) |
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 | ||
) |
mz_uint tdefl_create_comp_flags_from_zip_params | ( | int | level, |
int | window_bits, | ||
int | strategy | ||
) |
mz_uint32 tdefl_get_adler32 | ( | tdefl_compressor * | d | ) |
tdefl_status tdefl_get_prev_return_status | ( | tdefl_compressor * | d | ) |
tdefl_status tdefl_init | ( | tdefl_compressor * | d, |
tdefl_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 | ||
) |
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 | ||
) |