X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce4169a4d129fc6cd165b2e9ccc5cf5d48356020..d1af991f497a5e95d8f8ab15a4e4a4a4c375928f:/src/common/mstream.cpp diff --git a/src/common/mstream.cpp b/src/common/mstream.cpp index c9f2370466..6519a8bc3a 100644 --- a/src/common/mstream.cpp +++ b/src/common/mstream.cpp @@ -20,10 +20,6 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP - #include "wx/defs.h" -#endif - #if wxUSE_STREAMS #include @@ -37,9 +33,11 @@ wxMemoryInputStream::wxMemoryInputStream(const char *data, size_t len) : wxInputStream() { +/* m_i_streambuf->SetBufferIO((char*) data, (char*) (data+len)); m_i_streambuf->SetIntPosition(0); // seek to start pos m_i_streambuf->Fixed(TRUE); +*/ m_length = len; } @@ -49,7 +47,10 @@ wxMemoryInputStream::~wxMemoryInputStream() char wxMemoryInputStream::Peek() { +/* return m_i_streambuf->GetBufferStart()[m_i_streambuf->GetIntPosition()]; +*/ + return 0; } // ---------------------------------------------------------------------------- @@ -59,9 +60,11 @@ char wxMemoryInputStream::Peek() wxMemoryOutputStream::wxMemoryOutputStream(char *data, size_t len) : wxOutputStream() { +/* if (data) m_o_streambuf->SetBufferIO(data, data+len); m_o_streambuf->Fixed(TRUE); +*/ } wxMemoryOutputStream::~wxMemoryOutputStream()