X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18c07b73c6fa48c7c7b4a2867bcee4c81aa82c20..cc985face55ed02c310860afefc8e6d656fb849d:/src/common/mstream.cpp?ds=inline diff --git a/src/common/mstream.cpp b/src/common/mstream.cpp index 560c0fd1ae..6519a8bc3a 100644 --- a/src/common/mstream.cpp +++ b/src/common/mstream.cpp @@ -15,14 +15,17 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include -#include -#include #ifdef __BORLANDC__ -#pragma hdrstop + #pragma hdrstop #endif +#if wxUSE_STREAMS + +#include +#include +#include + // ---------------------------------------------------------------------------- // wxMemoryInputStream // ---------------------------------------------------------------------------- @@ -30,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; } @@ -42,7 +47,10 @@ wxMemoryInputStream::~wxMemoryInputStream() char wxMemoryInputStream::Peek() { +/* return m_i_streambuf->GetBufferStart()[m_i_streambuf->GetIntPosition()]; +*/ + return 0; } // ---------------------------------------------------------------------------- @@ -52,11 +60,15 @@ 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() { } + +#endif