]> git.saurik.com Git - wxWidgets.git/commitdiff
Added StreamSize() to wxMemoryOutputStream.
authorGuilhem Lavaux <lavaux@easynet.fr>
Mon, 19 Jul 1999 17:34:59 +0000 (17:34 +0000)
committerGuilhem Lavaux <lavaux@easynet.fr>
Mon, 19 Jul 1999 17:34:59 +0000 (17:34 +0000)
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

include/wx/mstream.h

index 187a0e65495592743949f22fdb6d89b7b3841062..65e67aa24fbc4a758d471d865c6b7390732d1a68 100644 (file)
@@ -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;