+void wxZlibOutputStream::Sync()
+{
+ int err;
+
+ m_parent_o_stream->Write(m_z_buffer, m_z_size-m_deflate.avail_out);
+ m_deflate.next_out = m_z_buffer;
+ m_deflate.avail_out = m_z_size;
+
+ err = deflate(&m_deflate, Z_FULL_FLUSH);
+ if (err != Z_OK) {
+ m_bad = TRUE;
+ return;
+ }
+
+ m_parent_o_stream->Write(m_z_buffer, m_z_size-m_deflate.avail_out);
+ m_deflate.next_out = m_z_buffer;
+ m_deflate.avail_out = m_z_size;
+}
+
+size_t wxZlibOutputStream::DoWrite(const void *buffer, size_t size)