]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mstream.h
Slightly better style?
[wxWidgets.git] / include / wx / mstream.h
index c25fc94a85dcdca9977ef144f769355272271cd0..3bd53e642dfa35038f3e1b5f59a384b1653d475c 100644 (file)
 #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();
 };
@@ -27,10 +31,4 @@ class wxMemoryOutputStream:  public wxOutputStream {
   virtual ~wxMemoryOutputStream();
 };
 
-class wxMemoryStream: public wxMemoryInputStream, public wxMemoryOutputStream {
- public:
-  wxMemoryStream(char *data = NULL, size_t length = 0);
-  virtual ~wxMemoryStream();
-};
-
 #endif