#include <wx/stream.h>
class wxMemoryInputStream: public wxInputStream {
+ private:
+ size_t m_length;
+
public:
wxMemoryInputStream(const char *data, size_t length);
virtual ~wxMemoryInputStream();
+ virtual size_t StreamSize() const { return m_length; }
char Peek();
};
virtual ~wxMemoryOutputStream();
};
-class wxMemoryStream: public wxMemoryInputStream, public wxMemoryOutputStream {
- public:
- wxMemoryStream(char *data = NULL, size_t length = 0);
- virtual ~wxMemoryStream();
-};
-
#endif