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__
20 #if wxUSE_ZLIB && wxUSE_STREAMS
22 #include "wx/stream.h"
24 class WXDLLEXPORT wxZlibInputStream
: public wxFilterInputStream
{
26 wxZlibInputStream(wxInputStream
& stream
);
27 virtual ~wxZlibInputStream();
30 size_t OnSysRead(void *buffer
, size_t size
);
34 unsigned char *m_z_buffer
;
35 struct z_stream_s
*m_inflate
;
38 class WXDLLEXPORT wxZlibOutputStream
: public wxFilterOutputStream
{
40 wxZlibOutputStream(wxOutputStream
& stream
, int level
= -1);
41 virtual ~wxZlibOutputStream();
46 size_t OnSysWrite(const void *buffer
, size_t size
);
50 unsigned char *m_z_buffer
;
51 struct z_stream_s
*m_deflate
;
55 // wxUSE_ZLIB && wxUSE_STREAMS