Lines Matching refs:m_deflate
286 m_deflate = NULL;
308 m_deflate = new z_stream_s;
310 if (m_deflate) {
311 memset(m_deflate, 0, sizeof(z_stream_s));
312 m_deflate->next_out = m_z_buffer;
313 m_deflate->avail_out = m_z_size;
324 if (deflateInit2(m_deflate, level, Z_DEFLATED, windowBits,
337 deflateEnd(m_deflate);
338 delete m_deflate;
340 m_deflate = NULL;
349 if (!m_deflate || !m_z_buffer)
358 size_t len = m_z_size - m_deflate->avail_out;
365 m_deflate->next_out = m_z_buffer;
366 m_deflate->avail_out = m_z_size;
371 err = deflate(m_deflate, final ? Z_FINISH : Z_FULL_FLUSH);
372 done = m_deflate->avail_out != 0 || err == Z_STREAM_END;
378 wxASSERT_MSG(m_deflate && m_z_buffer, wxT("Deflate stream not open"));
380 if (!m_deflate || !m_z_buffer)
390 m_deflate->next_in = (unsigned char *)buffer;
391 m_deflate->avail_in = size;
393 while (err == Z_OK && m_deflate->avail_in > 0) {
394 if (m_deflate->avail_out == 0) {
402 m_deflate->next_out = m_z_buffer;
403 m_deflate->avail_out = m_z_size;
406 err = deflate(m_deflate, Z_NO_FLUSH);
411 wxString msg(m_deflate->msg, *wxConvCurrent);
417 size -= m_deflate->avail_in;