1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Memory stream classes
4 // Author: Guilhem Lavaux
8 // Copyright: (c) Guilhem Lavaux
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_WXZSTREAM_H__
12 #define _WX_WXZSTREAM_H__
18 #include <wx/stream.h>
20 class WXDLLEXPORT wxZlibInputStream
: public wxFilterInputStream
{
22 wxZlibInputStream(wxInputStream
& stream
);
23 virtual ~wxZlibInputStream();
26 size_t OnSysRead(void *buffer
, size_t size
);
30 unsigned char *m_z_buffer
;
31 struct z_stream_s
*m_inflate
;
34 class WXDLLEXPORT wxZlibOutputStream
: public wxFilterOutputStream
{
36 wxZlibOutputStream(wxOutputStream
& stream
);
37 virtual ~wxZlibOutputStream();
42 size_t OnSysWrite(const void *buffer
, size_t size
);
46 unsigned char *m_z_buffer
;
47 struct z_stream_s
*m_deflate
;