]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mstream.h
Applied FreeBSD patch
[wxWidgets.git] / include / wx / mstream.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: mstream.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 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_WXMMSTREAM_H__
12 #define _WX_WXMMSTREAM_H__
13
14 #include <wx/stream.h>
15
16 class wxMemoryInputStream: public wxInputStream {
17 private:
18 size_t m_length;
19
20 public:
21 wxMemoryInputStream(const char *data, size_t length);
22 virtual ~wxMemoryInputStream();
23 virtual size_t StreamSize() const { return m_length; }
24
25 char Peek();
26 };
27
28 class wxMemoryOutputStream: public wxOutputStream {
29 public:
30 wxMemoryOutputStream(char *data = NULL, size_t length = 0);
31 virtual ~wxMemoryOutputStream();
32 };
33
34 #endif