Lines Matching defs:mz_uint8
1272 typedef unsigned char mz_uint8;
1645 const mz_uint8 *pIn_buf_next,
1646 size_t *pIn_buf_size, mz_uint8 *pOut_buf_start,
1647 mz_uint8 *pOut_buf_next, size_t *pOut_buf_size,
1661 mz_uint8 m_code_size[TINFL_MAX_HUFF_SYMBOLS_0];
1685 mz_uint8 m_raw_header[4],
1848 mz_uint8 *m_pLZ_code_buf, *m_pLZ_flags, *m_pOutput_buf, *m_pOutput_buf_end;
1859 const mz_uint8 *m_pSrc;
1861 mz_uint8 m_dict[TDEFL_LZ_DICT_SIZE + TDEFL_MAX_MATCH_LEN - 1];
1864 mz_uint8 m_huff_code_sizes[TDEFL_MAX_HUFF_TABLES][TDEFL_MAX_HUFF_SYMBOLS];
1865 mz_uint8 m_lz_code_buf[TDEFL_LZ_CODE_BUF_SIZE];
1868 mz_uint8 m_output_buf[TDEFL_OUT_BUF_SIZE];
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))
1999 mz_ulong mz_crc32(mz_ulong crc, const mz_uint8 *ptr, size_t buf_len) {
2008 mz_uint8 b = *ptr++;
2197 mz_uint8 m_dict[TINFL_LZ_DICT_SIZE];
2559 const mz_uint8 *pIn_buf_next,
2560 size_t *pIn_buf_size, mz_uint8 *pOut_buf_start,
2561 mz_uint8 *pOut_buf_next, size_t *pOut_buf_size,
2576 static const mz_uint8 s_length_dezigzag[19] = {
2583 const mz_uint8 *pIn_buf_cur = pIn_buf_next, *const pIn_buf_end =
2585 mz_uint8 *pOut_buf_cur = pOut_buf_next, *const pOut_buf_end =
2647 *pOut_buf_cur++ = (mz_uint8)dist;
2674 mz_uint8 *p = r->m_tables[0].m_code_size;
2692 r->m_tables[2].m_code_size[s_length_dezigzag[counter]] = (mz_uint8)s;
2759 r->m_len_codes[counter++] = (mz_uint8)dist;
2783 mz_uint8 *pSrc;
2792 *pOut_buf_cur++ = (mz_uint8)counter;
2851 pOut_buf_cur[0] = (mz_uint8)counter;
2857 pOut_buf_cur[1] = (mz_uint8)sym2;
2902 const mz_uint8 *pSrc_end = pSrc + (counter & ~7);
2959 const mz_uint8 *ptr = pOut_buf_next;
3001 &decomp, (const mz_uint8 *)pSrc_buf + src_buf_ofs, &src_buf_size,
3002 (mz_uint8 *)pBuf, pBuf ? (mz_uint8 *)pBuf + *pOut_len : NULL,
3035 tinfl_decompress(&decomp, (const mz_uint8 *)pSrc_buf, &src_buf_len,
3036 (mz_uint8 *)pOut_buf, (mz_uint8 *)pOut_buf, &out_buf_len,
3048 mz_uint8 *pDict = (mz_uint8 *)MZ_MALLOC(TINFL_LZ_DICT_SIZE);
3056 tinfl_decompress(&decomp, (const mz_uint8 *)pIn_buf + in_buf_ofs,
3099 static const mz_uint8 s_tdefl_len_extra[256] = {
3112 static const mz_uint8 s_tdefl_small_dist_sym[512] = {
3141 static const mz_uint8 s_tdefl_small_dist_extra[512] = {
3164 static const mz_uint8 s_tdefl_large_dist_sym[128] = {
3173 static const mz_uint8 s_tdefl_large_dist_extra[128] = {
3322 d->m_huff_code_sizes[table_num][pSyms[--j].m_sym_index] = (mz_uint8)(i);
3348 *d->m_pOutput_buf++ = (mz_uint8)(d->m_bit_buffer); \
3367 (mz_uint8)(rle_repeat_count - 3); \
3384 (mz_uint8)(rle_z_count - 3); \
3389 (mz_uint8)(rle_z_count - 11); \
3395 static mz_uint8 s_tdefl_packed_code_size_syms_swizzle[] = {
3402 mz_uint8
3428 mz_uint8 code_size = code_sizes_to_pack[i];
3483 mz_uint8 *p = &d->m_huff_code_sizes[0][0];
3506 mz_uint8 *pLZ_codes;
3507 mz_uint8 *pOutput_buf = d->m_pOutput_buf;
3508 mz_uint8 *pLZ_code_buf_end = d->m_pLZ_code_buf;
3599 mz_uint8 *pLZ_codes;
3651 mz_uint8 *pSaved_output_buf;
3656 mz_uint8 *pOutput_buf_start =
3659 ? ((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs)
3669 *d->m_pLZ_flags = (mz_uint8)(*d->m_pLZ_flags >> d->m_num_flags_left);
3758 *d->m_pIn_buf_size = d->m_pSrc - (const mz_uint8 *)d->m_pIn_buf;
3764 memcpy((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs, d->m_output_buf,
3825 (mz_uint)(*(const mz_uint8 *)p ==
3826 *(const mz_uint8 *)q)) > match_len) {
3843 const mz_uint8 *s = d->m_dict + pos, *p, *q;
3844 mz_uint8 c0 = d->m_dict[pos + match_len], c1 = d->m_dict[pos + match_len - 1];
3887 mz_uint8 *pLZ_code_buf = d->m_pLZ_code_buf, *pLZ_flags = d->m_pLZ_flags;
3916 mz_uint8 *pCur_dict = d->m_dict + cur_pos;
3943 (mz_uint)(*(const mz_uint8 *)p == *(const mz_uint8 *)q);
3951 *pLZ_code_buf++ = (mz_uint8)first_trigram;
3952 *pLZ_flags = (mz_uint8)(*pLZ_flags >> 1);
3953 d->m_huff_count[0][(mz_uint8)first_trigram]++;
3964 pLZ_code_buf[0] = (mz_uint8)(cur_match_len - TDEFL_MIN_MATCH_LEN);
3967 *pLZ_flags = (mz_uint8)((*pLZ_flags >> 1) | 0x80);
3977 *pLZ_code_buf++ = (mz_uint8)first_trigram;
3978 *pLZ_flags = (mz_uint8)(*pLZ_flags >> 1);
3979 d->m_huff_count[0][(mz_uint8)first_trigram]++;
4013 mz_uint8 lit = d->m_dict[cur_pos];
4017 *pLZ_flags = (mz_uint8)(*pLZ_flags >> 1);
4061 mz_uint8 lit) {
4064 *d->m_pLZ_flags = (mz_uint8)(*d->m_pLZ_flags >> 1);
4082 d->m_pLZ_code_buf[0] = (mz_uint8)(match_len - TDEFL_MIN_MATCH_LEN);
4085 d->m_pLZ_code_buf[1] = (mz_uint8)(match_dist & 0xFF);
4086 d->m_pLZ_code_buf[2] = (mz_uint8)(match_dist >> 8);
4089 *d->m_pLZ_flags = (mz_uint8)((*d->m_pLZ_flags >> 1) | 0x80);
4104 const mz_uint8 *pSrc = d->m_pSrc;
4121 const mz_uint8 *pSrc_end = pSrc + num_bytes_to_process;
4125 mz_uint8 c = *pSrc++;
4137 mz_uint8 c = *pSrc++;
4169 mz_uint8 c = d->m_dict[(cur_pos - 1) & TDEFL_LZ_DICT_SIZE_MASK];
4192 tdefl_record_literal(d, (mz_uint8)d->m_saved_lit);
4247 *d->m_pIn_buf_size = d->m_pSrc - (const mz_uint8 *)d->m_pIn_buf;
4253 memcpy((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs,
4279 d->m_pSrc = (const mz_uint8 *)(pIn_buf);
4314 (mz_uint32)mz_adler32(d->m_adler32, (const mz_uint8 *)pIn_buf,
4315 d->m_pSrc - (const mz_uint8 *)pIn_buf);
4399 mz_uint8 *m_pBuf;
4409 mz_uint8 *pNew_buf;
4414 pNew_buf = (mz_uint8 *)MZ_REALLOC(p->m_pBuf, new_capacity);
4419 memcpy((mz_uint8 *)p->m_pBuf + p->m_size, pBuf, len);
4446 out_buf.m_pBuf = (mz_uint8 *)pOut_buf;
4520 if (NULL == (out_buf.m_pBuf = (mz_uint8 *)MZ_MALLOC(out_buf.m_capacity))) {
4533 (mz_uint8 *)pImage + (flip ? (h - 1 - y) : y) * bpl,
4545 static const mz_uint8 chans[] = {0x00, 0x00, 0x04, 0x02, 0x06};
4546 mz_uint8 pnghdr[41] = {0x89,
4564 (mz_uint8)(w >> 8),
4565 (mz_uint8)w,
4568 (mz_uint8)(h >> 8),
4569 (mz_uint8)h,
4579 (mz_uint8)(*pLen_out >> 24),
4580 (mz_uint8)(*pLen_out >> 16),
4581 (mz_uint8)(*pLen_out >> 8),
4582 (mz_uint8)*pLen_out,
4589 ((mz_uint8 *)(pnghdr + 29))[i] = (mz_uint8)(c >> 24);
4603 (out_buf.m_pBuf + out_buf.m_size - 16)[i] = (mz_uint8)(c >> 24);
4859 memcpy((mz_uint8 *)pArray->m_p + orig_size * pArray->m_element_size,
4947 sizeof(mz_uint8));
4959 const mz_uint8 *pL = &MZ_ZIP_ARRAY_ELEMENT(
4960 pCentral_dir_array, mz_uint8,
4964 const mz_uint8 *pR = &MZ_ZIP_ARRAY_ELEMENT(
4965 pCentral_dir_array, mz_uint8,
4969 mz_uint8 l = 0, r = 0;
5043 const mz_uint8 *p;
5045 mz_uint8 *pBuf = (mz_uint8 *)buf_u32;
5126 p = (const mz_uint8 *)pZip->m_pState->m_central_dir.m_p;
5134 (mz_uint32)(p - (const mz_uint8 *)pZip->m_pState->m_central_dir.m_p);
5185 memcpy(pBuf, (const mz_uint8 *)pZip->m_pState->m_pMem + file_ofs, s);
5250 static MZ_FORCEINLINE const mz_uint8 *mz_zip_reader_get_cdh(
5256 &pZip->m_pState->m_central_dir, mz_uint8,
5264 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index);
5273 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index);
5298 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index);
5343 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index);
5372 const mz_uint8 *pL = &MZ_ZIP_ARRAY_ELEMENT(
5373 pCentral_dir_array, mz_uint8,
5378 mz_uint8 l = 0, r = 0;
5429 const mz_uint8 *pHeader = &MZ_ZIP_ARRAY_ELEMENT(
5430 &pZip->m_pState->m_central_dir, mz_uint8,
5478 mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32;
5529 (mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf,
5539 pRead_buf = (mz_uint8 *)pZip->m_pState->m_pMem + cur_file_ofs;
5545 pRead_buf = (mz_uint8 *)pUser_read_buf;
5583 &inflator, (mz_uint8 *)pRead_buf + read_buf_ofs, &in_buf_size,
5584 (mz_uint8 *)pBuf, (mz_uint8 *)pBuf + out_buf_ofs, &out_buf_size,
5595 (mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf,
5633 const mz_uint8 *p = mz_zip_reader_get_cdh(pZip, file_index);
5688 mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32;
5728 pRead_buf = (mz_uint8 *)pZip->m_pState->m_pMem + cur_file_ofs;
5757 (mz_uint32)mz_crc32(file_crc32, (const mz_uint8 *)pRead_buf,
5773 file_crc32, (const mz_uint8 *)pRead_buf, (size_t)read_buf_avail);
5794 mz_uint8 *pWrite_buf_cur =
5795 (mz_uint8 *)pWrite_buf + (out_buf_ofs & (TINFL_LZ_DICT_SIZE - 1));
5813 &inflator, (const mz_uint8 *)pRead_buf + read_buf_ofs, &in_buf_size,
5814 (mz_uint8 *)pWrite_buf, pWrite_buf_cur, &out_buf_size,
5930 static void mz_write_le16(mz_uint8 *p, mz_uint16 v) {
5931 p[0] = (mz_uint8)v;
5932 p[1] = (mz_uint8)(v >> 8);
5934 static void mz_write_le32(mz_uint8 *p, mz_uint32 v) {
5935 p[0] = (mz_uint8)v;
5936 p[1] = (mz_uint8)(v >> 8);
5937 p[2] = (mz_uint8)(v >> 16);
5938 p[3] = (mz_uint8)(v >> 24);
5940 #define MZ_WRITE_LE16(p, v) mz_write_le16((mz_uint8 *)(p), (mz_uint16)(v))
5941 #define MZ_WRITE_LE32(p, v) mz_write_le32((mz_uint8 *)(p), (mz_uint32)(v))
5968 sizeof(mz_uint8));
5999 memcpy((mz_uint8 *)pState->m_pMem + file_ofs, pBuf, n);
6141 mz_zip_archive *pZip, mz_uint8 *pDst, mz_uint16 filename_size,
6162 mz_zip_archive *pZip, mz_uint8 *pDst, mz_uint16 filename_size,
6196 mz_uint8 central_dir_header[MZ_ZIP_CENTRAL_DIR_HEADER_SIZE];
6276 mz_uint8 local_dir_header[MZ_ZIP_LOCAL_DIR_HEADER_SIZE];
6367 (mz_uint32)mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf, buf_size);
6448 mz_uint8 local_dir_header[MZ_ZIP_LOCAL_DIR_HEADER_SIZE];
6533 (mz_uint32)mz_crc32(uncomp_crc32, (const mz_uint8 *)pRead_buf, n);
6572 uncomp_crc32, (const mz_uint8 *)pRead_buf, in_buf_size);
6640 mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32;
6641 mz_uint8 central_header[MZ_ZIP_CENTRAL_DIR_HEADER_SIZE];
6645 const mz_uint8 *pSrc_central_header;
6782 mz_uint8 hdr[MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE];