X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2df7be7f2cca699a02ee0c9ce69de9bfe6b0922f..d1af991f497a5e95d8f8ab15a4e4a4a4c375928f:/src/common/mstream.cpp diff --git a/src/common/mstream.cpp b/src/common/mstream.cpp index c6a58a04a1..6519a8bc3a 100644 --- a/src/common/mstream.cpp +++ b/src/common/mstream.cpp @@ -33,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; } @@ -45,7 +47,10 @@ wxMemoryInputStream::~wxMemoryInputStream() char wxMemoryInputStream::Peek() { +/* return m_i_streambuf->GetBufferStart()[m_i_streambuf->GetIntPosition()]; +*/ + return 0; } // ---------------------------------------------------------------------------- @@ -55,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()