Lines Matching defs:state

1051   struct mz_internal_state *state;  // internal state, allocated by zalloc/zfree
1630 // Initializes the decompressor to its initial state.
1841 // tdefl's compression state structure.
2066 pStream->state = (struct mz_internal_state *)pComp;
2077 if ((!pStream) || (!pStream->state) || (!pStream->zalloc) ||
2081 tdefl_init((tdefl_compressor *)pStream->state, NULL, NULL,
2082 ((tdefl_compressor *)pStream->state)->m_flags);
2091 if ((!pStream) || (!pStream->state) || (flush < 0) || (flush > MZ_FINISH) ||
2098 if (((tdefl_compressor *)pStream->state)->m_prev_return_status ==
2109 defl_status = tdefl_compress((tdefl_compressor *)pStream->state,
2115 pStream->adler = tdefl_get_adler32((tdefl_compressor *)pStream->state);
2141 if (pStream->state) {
2142 pStream->zfree(pStream->opaque, pStream->state);
2143 pStream->state = NULL;
2221 pStream->state = (struct mz_internal_state *)pDecomp;
2244 if ((!pStream) || (!pStream->state)) return MZ_STREAM_ERROR;
2249 pState = (inflate_state *)pStream->state;
2357 if (pStream->state) {
2358 pStream->zfree(pStream->opaque, pStream->state);
2359 pStream->state = NULL;
4161 // Simple lazy/greedy parsing state machine.
6088 // The mz_zip_archive is now in a bogus state because pState->m_pFile is
6221 // Try to push the central directory array back into its original state.
6387 mz_zip_writer_add_state state;
6389 state.m_pZip = pZip;
6390 state.m_cur_archive_file_ofs = cur_archive_file_ofs;
6391 state.m_comp_size = 0;
6393 if ((tdefl_init(pComp, mz_zip_writer_add_put_buf_callback, &state,
6403 comp_size = state.m_comp_size;
6404 cur_archive_file_ofs = state.m_cur_archive_file_ofs;
6540 mz_zip_writer_add_state state;
6549 state.m_pZip = pZip;
6550 state.m_cur_archive_file_ofs = cur_archive_file_ofs;
6551 state.m_comp_size = 0;
6553 if (tdefl_init(pComp, mz_zip_writer_add_put_buf_callback, &state,
6593 comp_size = state.m_comp_size;
6594 cur_archive_file_ofs = state.m_cur_archive_file_ofs;