m_lasterror = wxStream_NOERROR;
return *this;
}
- size -= retsize;
- buf += retsize;
+ size -= retsize;
+ buf += retsize;
- // GRG: shouldn't we also add retsize to m_lastcount here?
- m_lastcount = OnSysRead(buf, size);
+ m_lastcount = OnSysRead(buf, size) + retsize;
return *this;
}
{
}
+void wxOutputStream::PutC(char c)
+{
+ Write((void *) &c, 1);
+}
+
wxOutputStream& wxOutputStream::Write(const void *buffer, size_t size)
{
m_lastcount = OnSysWrite(buffer, size);
wxBufferedInputStream::~wxBufferedInputStream()
{
+ off_t unused_bytes=m_i_streambuf->GetBufferPos()-m_i_streambuf->GetBufferEnd();
+ m_parent_i_stream->SeekI(unused_bytes,wxFromCurrent);
+
delete m_i_streambuf;
}