From: Guilhem Lavaux Date: Mon, 19 Jul 1999 17:34:59 +0000 (+0000) Subject: Added StreamSize() to wxMemoryOutputStream. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d631778852c7949e7a5758a6d3691f395d8d40f?ds=sidebyside;hp=089989960fedc145ac47a1496f104554fe038088 Added StreamSize() to wxMemoryOutputStream. Added InputStreamBuffer() and OutputStreamBuffer() to have access to internal buffers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/mstream.h b/include/wx/mstream.h index 187a0e6549..65e67aa24f 100644 --- a/include/wx/mstream.h +++ b/include/wx/mstream.h @@ -26,6 +26,8 @@ class wxMemoryInputStream: public wxInputStream { char Peek(); + wxStreamBuffer *InputStreamBuffer() const { return m_i_streambuf; } + protected: wxStreamBuffer *m_i_streambuf; @@ -39,6 +41,9 @@ class wxMemoryOutputStream: public wxOutputStream { public: wxMemoryOutputStream(char *data = NULL, size_t length = 0); virtual ~wxMemoryOutputStream(); + virtual size_t StreamSize() const { return m_o_streambuf->GetLastAccess(); } + + wxStreamBuffer *OutputStreamBuffer() const { return m_o_streambuf; } protected: wxStreamBuffer *m_o_streambuf;