Lines Matching refs:mz_uint32
1275 typedef unsigned int mz_uint32; typedef
1303 mz_uint32 m_file_index;
1304 mz_uint32 m_central_dir_ofs;
1312 mz_uint32 m_crc32;
1316 mz_uint32 m_external_attr;
1318 mz_uint32 m_comment_size;
1371 mz_uint32 flags);
1373 size_t size, mz_uint32 flags);
1377 mz_uint32 flags);
1503 mz_uint32 uncomp_crc32);
1648 const mz_uint32 decomp_flags);
1674 typedef mz_uint32 tinfl_bit_buf_t;
1679 mz_uint32 m_state, m_num_bits, m_zhdr0, m_zhdr1, m_z_adler32, m_final, m_type,
1899 mz_uint32 tdefl_get_adler32(tdefl_compressor *d);
1926 typedef unsigned char mz_validate_uint32[sizeof(mz_uint32) == 4 ? 1 : -1];
1947 #define MZ_READ_LE32(p) *((const mz_uint32 *)(p))
1950 ((mz_uint32)(((const mz_uint8 *)(p))[0]) | \
1951 ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
1953 ((mz_uint32)(((const mz_uint8 *)(p))[0]) | \
1954 ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | \
1955 ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | \
1956 ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
1974 mz_uint32 i, s1 = (mz_uint32)(adler & 0xffff), s2 = (mz_uint32)(adler >> 16); in mz_adler32()
2000 static const mz_uint32 s_crc32[16] = { in mz_crc32()
2004 mz_uint32 crcu32 = (mz_uint32)crc; in mz_crc32()
2166 stream.avail_in = (mz_uint32)source_len; in mz_compress2()
2168 stream.avail_out = (mz_uint32)*pDest_len; in mz_compress2()
2374 stream.avail_in = (mz_uint32)source_len; in mz_uncompress()
2376 stream.avail_out = (mz_uint32)*pDest_len; in mz_uncompress()
2562 const mz_uint32 decomp_flags) { in tinfl_decompress()
2581 mz_uint32 num_bits, dist, counter, num_extra; in tinfl_decompress()
2904 ((mz_uint32 *)pOut_buf_cur)[0] = ((const mz_uint32 *)pSrc)[0]; in tinfl_decompress()
2905 ((mz_uint32 *)pOut_buf_cur)[1] = ((const mz_uint32 *)pSrc)[1]; in tinfl_decompress()
2961 mz_uint32 i, s1 = r->m_check_adler32 & 0xffff, in tinfl_decompress()
3190 mz_uint32 total_passes = 2, pass_shift, pass, i, hist[256 * 2]; in tdefl_radix_sort_syms()
3201 const mz_uint32 *pHist = &hist[pass << 8]; in tdefl_radix_sort_syms()
3272 mz_uint32 total = 0; in tdefl_huffman_enforce_max_code_size()
3277 total += (((mz_uint32)pNum_codes[i]) << (max_code_size - i)); in tdefl_huffman_enforce_max_code_size()
3586 mz_uint32 n = MZ_MIN(bits_in, 16); in tdefl_compress_lz_codes()
3900 mz_uint32 n = MZ_MIN(TDEFL_LZ_DICT_SIZE - dst_pos, num_bytes_to_process); in tdefl_compress_fast()
3917 mz_uint first_trigram = (*(const mz_uint32 *)pCur_dict) & 0xFFFFFF; in tdefl_compress_fast()
3926 ((*(const mz_uint32 *)(d->m_dict + in tdefl_compress_fast()
3931 mz_uint32 probe_len = 32; in tdefl_compress_fast()
3955 mz_uint32 s0, s1; in tdefl_compress_fast()
4075 mz_uint32 s0, s1; in tdefl_record_match()
4314 (mz_uint32)mz_adler32(d->m_adler32, (const mz_uint8 *)pIn_buf, in tdefl_compress()
4378 mz_uint32 tdefl_get_adler32(tdefl_compressor *d) { return d->m_adler32; } in tdefl_get_adler32()
4514 mz_uint32 c; in tdefl_write_image_to_png_file_in_memory_ex()
4587 c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, pnghdr + 12, 17); in tdefl_write_image_to_png_file_in_memory_ex()
4600 c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, out_buf.m_pBuf + 41 - 4, in tdefl_write_image_to_png_file_in_memory_ex()
4928 mz_uint32 flags) { in mz_zip_reader_init_internal()
4949 sizeof(mz_uint32)); in mz_zip_reader_init_internal()
4951 sizeof(mz_uint32)); in mz_zip_reader_init_internal()
4961 MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_offsets, mz_uint32, in mz_zip_reader_filename_less()
4966 MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_offsets, mz_uint32, r_index)); in mz_zip_reader_filename_less()
4983 mz_uint32 t = a; \
4997 mz_uint32 *pIndices = &MZ_ZIP_ARRAY_ELEMENT( in mz_zip_reader_sort_central_dir_offsets_by_filename()
4998 &pState->m_sorted_central_dir_offsets, mz_uint32, 0); in mz_zip_reader_sort_central_dir_offsets_by_filename()
5039 mz_uint32 flags) { in mz_zip_reader_read_central_dir()
5044 mz_uint32 buf_u32[4096 / sizeof(mz_uint32)]; in mz_zip_reader_read_central_dir()
5132 MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, in mz_zip_reader_read_central_dir()
5134 (mz_uint32)(p - (const mz_uint8 *)pZip->m_pState->m_central_dir.m_p); in mz_zip_reader_read_central_dir()
5137 mz_uint32, i) = i; in mz_zip_reader_read_central_dir()
5168 mz_uint32 flags) { in mz_zip_reader_init()
5190 size_t size, mz_uint32 flags) { in mz_zip_reader_init_mem()
5221 mz_uint32 flags) { in mz_zip_reader_init_file()
5257 MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, in mz_zip_reader_get_cdh()
5304 &pZip->m_pState->m_central_dir_offsets, mz_uint32, file_index); in mz_zip_reader_file_stat()
5374 MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_offsets, mz_uint32, in mz_zip_reader_filename_compare()
5394 mz_uint32 *pIndices = &MZ_ZIP_ARRAY_ELEMENT( in mz_zip_reader_locate_file_binary_search()
5395 &pState->m_sorted_central_dir_offsets, mz_uint32, 0); in mz_zip_reader_locate_file_binary_search()
5431 MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, in mz_zip_reader_locate_file()
5475 mz_uint32 in mz_zip_reader_extract_to_mem_no_alloc()
5476 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / in mz_zip_reader_extract_to_mem_no_alloc()
5477 sizeof(mz_uint32)]; in mz_zip_reader_extract_to_mem_no_alloc()
5554 if (((0, sizeof(size_t) == sizeof(mz_uint32))) && in mz_zip_reader_extract_to_mem_no_alloc()
5557 if (((sizeof(size_t) == sizeof(mz_uint32))) && (read_buf_size > 0x7FFFFFFF)) in mz_zip_reader_extract_to_mem_no_alloc()
5644 if (((0, sizeof(size_t) == sizeof(mz_uint32))) && (alloc_size > 0x7FFFFFFF)) in mz_zip_reader_extract_to_heap()
5646 if (((sizeof(size_t) == sizeof(mz_uint32))) && (alloc_size > 0x7FFFFFFF)) in mz_zip_reader_extract_to_heap()
5685 mz_uint32 in mz_zip_reader_extract_to_callback()
5686 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / in mz_zip_reader_extract_to_callback()
5687 sizeof(mz_uint32)]; in mz_zip_reader_extract_to_callback()
5745 if (((0, sizeof(size_t) == sizeof(mz_uint32))) && in mz_zip_reader_extract_to_callback()
5748 if (((sizeof(size_t) == sizeof(mz_uint32))) && in mz_zip_reader_extract_to_callback()
5757 (mz_uint32)mz_crc32(file_crc32, (const mz_uint8 *)pRead_buf, in mz_zip_reader_extract_to_callback()
5772 file_crc32 = (mz_uint32)mz_crc32( in mz_zip_reader_extract_to_callback()
5826 (mz_uint32)mz_crc32(file_crc32, pWrite_buf_cur, out_buf_size); in mz_zip_reader_extract_to_callback()
5934 static void mz_write_le32(mz_uint8 *p, mz_uint32 v) { in mz_write_le32()
5941 #define MZ_WRITE_LE32(p, v) mz_write_le32((mz_uint8 *)(p), (mz_uint32)(v))
5970 sizeof(mz_uint32)); in mz_zip_writer_init()
5972 sizeof(mz_uint32)); in mz_zip_writer_init()
5983 ((0, sizeof(size_t) == sizeof(mz_uint32)) && (new_size > 0x7FFFFFFF))) in mz_zip_heap_write_func()
5986 ((sizeof(size_t) == sizeof(mz_uint32)) && (new_size > 0x7FFFFFFF))) in mz_zip_heap_write_func()
6143 mz_uint32 uncomp_crc32, mz_uint16 method, mz_uint16 bit_flags, in mz_zip_writer_create_local_dir_header()
6164 mz_uint64 comp_size, mz_uint32 uncomp_crc32, mz_uint16 method, in mz_zip_writer_create_central_dir_header()
6166 mz_uint64 local_header_ofs, mz_uint32 ext_attributes) { in mz_zip_writer_create_central_dir_header()
6190 mz_uint32 uncomp_crc32, mz_uint16 method, mz_uint16 bit_flags, in mz_zip_writer_add_to_central_dir()
6192 mz_uint32 ext_attributes) { in mz_zip_writer_add_to_central_dir()
6194 mz_uint32 central_dir_ofs = (mz_uint32)pState->m_central_dir.m_size; in mz_zip_writer_add_to_central_dir()
6244 mz_uint32 n; in mz_zip_writer_compute_padding_needed_for_file_alignment()
6246 n = (mz_uint32)(pZip->m_archive_size & (pZip->m_file_offset_alignment - 1)); in mz_zip_writer_compute_padding_needed_for_file_alignment()
6252 mz_uint64 cur_file_ofs, mz_uint32 n) { in mz_zip_writer_write_zeros()
6256 mz_uint32 s = MZ_MIN(sizeof(buf), n); in mz_zip_writer_write_zeros()
6270 mz_uint32 uncomp_crc32) { in mz_zip_writer_add_mem_ex()
6367 (mz_uint32)mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf, buf_size); in mz_zip_writer_add_mem_ex()
6533 (mz_uint32)mz_crc32(uncomp_crc32, (const mz_uint8 *)pRead_buf, n); in mz_zip_writer_add_file()
6564 size_t in_buf_size = (mz_uint32)MZ_MIN(uncomp_remaining, in mz_zip_writer_add_file()
6571 uncomp_crc32 = (mz_uint32)mz_crc32( in mz_zip_writer_add_file()
6637 mz_uint32 in mz_zip_writer_add_from_zip_reader()
6638 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / in mz_zip_writer_add_from_zip_reader()
6639 sizeof(mz_uint32)]; in mz_zip_writer_add_from_zip_reader()
6699 (size_t)MZ_MAX(sizeof(mz_uint32) * 4, in mz_zip_writer_add_from_zip_reader()
6726 sizeof(mz_uint32) * 4) != sizeof(mz_uint32) * 4) { in mz_zip_writer_add_from_zip_reader()
6731 n = sizeof(mz_uint32) * ((MZ_READ_LE32(pBuf) == 0x08074b50) ? 4 : 3); in mz_zip_writer_add_from_zip_reader()
6766 n = (mz_uint32)orig_central_dir_size; in mz_zip_writer_add_from_zip_reader()