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
This commit is contained in:
parent
089989960f
commit
0d63177885
@ -26,6 +26,8 @@ class wxMemoryInputStream: public wxInputStream {
|
|||||||
|
|
||||||
char Peek();
|
char Peek();
|
||||||
|
|
||||||
|
wxStreamBuffer *InputStreamBuffer() const { return m_i_streambuf; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxStreamBuffer *m_i_streambuf;
|
wxStreamBuffer *m_i_streambuf;
|
||||||
|
|
||||||
@ -39,6 +41,9 @@ class wxMemoryOutputStream: public wxOutputStream {
|
|||||||
public:
|
public:
|
||||||
wxMemoryOutputStream(char *data = NULL, size_t length = 0);
|
wxMemoryOutputStream(char *data = NULL, size_t length = 0);
|
||||||
virtual ~wxMemoryOutputStream();
|
virtual ~wxMemoryOutputStream();
|
||||||
|
virtual size_t StreamSize() const { return m_o_streambuf->GetLastAccess(); }
|
||||||
|
|
||||||
|
wxStreamBuffer *OutputStreamBuffer() const { return m_o_streambuf; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxStreamBuffer *m_o_streambuf;
|
wxStreamBuffer *m_o_streambuf;
|
||||||
|
Loading…
Reference in New Issue
Block a user