]> git.saurik.com Git - wxWidgets.git/blame - include/wx/zstream.h
test for timegm() added
[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
124031d5 18#include "wx/defs.h"
ac57418f 19
ce4169a4 20#if wxUSE_ZLIB && wxUSE_STREAMS
ac57418f 21
ed58dbea 22#include "wx/stream.h"
79c3e0e1 23
4259a48e 24class WXDLLEXPORT wxZlibInputStream: public wxFilterInputStream {
79c3e0e1
GL
25 public:
26 wxZlibInputStream(wxInputStream& stream);
27 virtual ~wxZlibInputStream();
28
79c3e0e1 29 protected:
75ed1d15 30 size_t OnSysRead(void *buffer, size_t size);
1678ad78
GL
31
32 protected:
79c3e0e1
GL
33 size_t m_z_size;
34 unsigned char *m_z_buffer;
856d2e52 35 struct z_stream_s *m_inflate;
79c3e0e1
GL
36};
37
4259a48e 38class WXDLLEXPORT wxZlibOutputStream: public wxFilterOutputStream {
79c3e0e1
GL
39 public:
40 wxZlibOutputStream(wxOutputStream& stream);
41 virtual ~wxZlibOutputStream();
42
1678ad78 43 void Sync();
79c3e0e1 44
79c3e0e1 45 protected:
75ed1d15 46 size_t OnSysWrite(const void *buffer, size_t size);
1678ad78
GL
47
48 protected:
79c3e0e1
GL
49 size_t m_z_size;
50 unsigned char *m_z_buffer;
856d2e52 51 struct z_stream_s *m_deflate;
79c3e0e1
GL
52};
53
54#endif
ce4169a4 55 // wxUSE_ZLIB && wxUSE_STREAMS
ac57418f
RR
56
57#endif
cc985fac
PA
58 // _WX_WXZSTREAM_H__
59