Lines Matching defs:read
138 return m_mode == read ? NULL : (wxOutputStream *)m_stream;
190 m_buffer_pos = m_mode == read && m_flushable
195 // fill the buffer with as much data as possible (only for read buffers)
401 // size, read data in chunks
433 wxCHECK_MSG( m_mode != write, 0, _T("can't read from this buffer") );
527 wxCHECK_MSG( m_mode != read, 0, _T("can't write to this buffer") );
528 wxCHECK_MSG( sbuf->m_mode != write, 0, _T("can't read from that buffer") );
608 // We must take into account the fact that we have read
650 if ( m_mode == read && m_flushable )
710 // we don't know if there is anything to read or not and by default we
711 // prefer to be optimistic and try to read data unless we know for sure
719 // tried to read beyond it in which case last error is set accordingly
764 // we won't read everything
821 wxASSERT_MSG( buf, _T("Warning: Null pointer is about to be read") );
826 size_t read = GetWBack(buf, size);
829 size -= read;
830 m_lastcount += read;
831 p += read;
835 // we read the requested amount of data
841 // we have already read something and we would block in OnSysRead()
846 read = OnSysRead(p, size);
847 if ( !read )
1191 m_i_streambuf = new wxStreamBuffer(*this, wxStreamBuffer::read);
1215 // first read from the already cached data
1218 // do we have to read anything more?
1229 // the new count of the bytes read is the count of bytes read this time
1232 // plus those we had read before