* New wxStreams (to be documented), new classes: wxBufferedStreams,
wxTextStreams git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user