size_t wxMemoryInputStream::OnSysRead(void *buffer, size_t nbytes)
{
+ m_lastcount = 0;
return m_i_streambuf->Read(buffer, nbytes);
}
size_t wxMemoryOutputStream::OnSysWrite(const void *buffer, size_t nbytes)
{
+ m_lastcount = 0;
return m_o_streambuf->Write(buffer, nbytes);
}
if (!buffer)
return 0;
- if (len > StreamSize())
- len = StreamSize();
+ if (len > GetSize())
+ len = GetSize();
memcpy(buffer, m_o_streambuf->GetBufferStart(), len);
return len;