X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d0a075d901994630d4142d0643a292191338ec0..cc985face55ed02c310860afefc8e6d656fb849d:/src/common/mstream.cpp diff --git a/src/common/mstream.cpp b/src/common/mstream.cpp index 35e384bade..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,8 +33,12 @@ 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; } wxMemoryInputStream::~wxMemoryInputStream() @@ -40,7 +47,10 @@ wxMemoryInputStream::~wxMemoryInputStream() char wxMemoryInputStream::Peek() { +/* return m_i_streambuf->GetBufferStart()[m_i_streambuf->GetIntPosition()]; +*/ + return 0; } // ---------------------------------------------------------------------------- @@ -50,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