#if wxUSE_STREAMS
#include <stdlib.h>
-#include <wx/stream.h>
-#include <wx/mstream.h>
+#include "wx/stream.h"
+#include "wx/mstream.h"
// ----------------------------------------------------------------------------
// wxMemoryInputStream
size_t wxMemoryInputStream::OnSysRead(void *buffer, size_t nbytes)
{
+ m_lastcount = 0;
return m_i_streambuf->Read(buffer, nbytes);
}
m_o_streambuf = new wxStreamBuffer(wxStreamBuffer::write);
if (data)
m_o_streambuf->SetBufferIO(data, data+len);
- m_o_streambuf->Fixed(TRUE);
+ m_o_streambuf->Fixed(FALSE);
+ m_o_streambuf->Flushable(FALSE);
}
wxMemoryOutputStream::~wxMemoryOutputStream()
size_t wxMemoryOutputStream::OnSysWrite(const void *buffer, size_t nbytes)
{
+ m_lastcount = 0;
return m_o_streambuf->Write(buffer, nbytes);
}