void wxStreamBuffer::ResetBuffer()
{
+ m_stream->m_lasterror = wxStream_NOERROR;
if (m_mode == read)
m_buffer_pos = m_buffer_end;
else
if (!temp_b)
return NULL;
m_wback = temp_b;
- printf("Buffer(0x%x)->Write: 0x%x, %d\n", this, m_wback, m_wbacksize);
+
return (char *)(m_wback+(m_wbacksize-needed_size));
}
{
size_t s_toget = m_wbacksize-m_wbackcur;
- printf("Buffer(0x%x): 0x%x, %d\n", this, m_wback, m_wbacksize);
if (bsize < s_toget)
s_toget = bsize;
// Buffering disabled
// ------------------
+ m_stream->m_lasterror = wxStream_NOERROR;
m_stream->m_lastcount = GetWBack((char *)buffer, size);
size -= m_stream->m_lastcount;
if (size == 0)
// Buffering disabled
// ------------------
+ m_stream->m_lasterror = wxStream_NOERROR;
if (!m_buffer_size)
return (m_stream->m_lastcount = m_stream->OnSysWrite(buffer, size));