* A few updates (stream doc)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1999-02-07 21:12:41 +00:00
parent 89c684ef82
commit 07b7327093
4 changed files with 122 additions and 28 deletions

View File

@@ -82,6 +82,9 @@ size_t wxStreamBuffer::WriteBack(const char *buf, size_t bufsize)
{
char *ptrback;
if (m_mode != read)
return 0;
ptrback = AllocSpaceWBack(bufsize);
if (!ptrback)
return 0;
@@ -137,6 +140,7 @@ void wxStreamBuffer::SetBufferIO(size_t bufsize)
void wxStreamBuffer::ResetBuffer()
{
m_stream->m_lasterror = wxStream_NOERROR;
m_stream->m_lastcount = 0;
if (m_mode == read)
m_buffer_pos = m_buffer_end;
else