X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75ed1d15d0d866cac78f7c0da176db8dd5288bc8..f924129679e25bdc0bb8d4accf47bc420d4b802d:/include/wx/mstream.h diff --git a/include/wx/mstream.h b/include/wx/mstream.h index c25fc94a85..3bd53e642d 100644 --- a/include/wx/mstream.h +++ b/include/wx/mstream.h @@ -14,9 +14,13 @@ #include 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