]> git.saurik.com Git - wxWidgets.git/blame - include/wx/zstream.h
SetBackground for ListBox and others
[wxWidgets.git] / include / wx / zstream.h
CommitLineData
79c3e0e1
GL
1/////////////////////////////////////////////////////////////////////////////
2// Name: zstream.h
3// Purpose: Memory stream classes
4// Author: Guilhem Lavaux
5// Modified by:
6// Created: 11/07/98
7// RCS-ID: $Id$
8// Copyright: (c) Guilhem Lavaux
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
34138703
JS
11#ifndef _WX_WXZSTREAM_H__
12#define _WX_WXZSTREAM_H__
79c3e0e1
GL
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include <wx/stream.h>
79c3e0e1
GL
19
20class wxZlibInputStream: public wxFilterInputStream {
79c3e0e1
GL
21 public:
22 wxZlibInputStream(wxInputStream& stream);
23 virtual ~wxZlibInputStream();
24
79c3e0e1 25 protected:
75ed1d15 26 size_t OnSysRead(void *buffer, size_t size);
1678ad78
GL
27
28 protected:
79c3e0e1
GL
29 size_t m_z_size;
30 unsigned char *m_z_buffer;
856d2e52 31 struct z_stream_s *m_inflate;
79c3e0e1
GL
32};
33
34class wxZlibOutputStream: public wxFilterOutputStream {
79c3e0e1
GL
35 public:
36 wxZlibOutputStream(wxOutputStream& stream);
37 virtual ~wxZlibOutputStream();
38
1678ad78 39 void Sync();
79c3e0e1 40
79c3e0e1 41 protected:
75ed1d15 42 size_t OnSysWrite(const void *buffer, size_t size);
1678ad78
GL
43
44 protected:
79c3e0e1
GL
45 size_t m_z_size;
46 unsigned char *m_z_buffer;
856d2e52 47 struct z_stream_s *m_deflate;
79c3e0e1
GL
48};
49
50#endif