Derived from
Include files
<wx/mstream.h>
See also
wxStreamBuffer (REF NOT FOUND)
Remark
You can create a similar stream by this way:
wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::write); wxOutputStream *input = new wxOutputStream(sb); // If there are data sb->SetBufferIO(data, data\_end); // Else sb->Fixed(FALSE);This way is also useful to create read/write memory stream:
wxStreamBuffer *sb = new wxStreamBuffer(wxStreamBuffer::read\_write); wxOutputStream *output = new wxOutputStream(sb); wxInputStream *input = new wxInputStream(sb); // If there are data sb->SetBufferIO(data, data\_end); // Else sb->Fixed(FALSE);Members
wxMemoryOutputStream::wxMemoryOutputStream
wxMemoryOutputStream::~wxMemoryOutputStream
wxMemoryOutputStream(char * data = NULL, size_t length = 0)
If data is NULL, then it will initialize a new empty buffer which will grow when it needs.
Warning
If the buffer is created, it will be destroyed at the destruction of the stream.
~wxMemoryOutputStream()
Destructor.