Lines Matching refs:writepos

588 		stream->writepos = stream->readpos = 0;  in _php_stream_fill_read_buffer()
593 while (!stream->eof && !err_flag && (stream->writepos - stream->readpos < (off_t)size)) { in _php_stream_fill_read_buffer()
639 if (stream->readbuflen - stream->writepos < bucket->buflen) { in _php_stream_fill_read_buffer()
644 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in _php_stream_fill_read_buffer()
645 stream->writepos += bucket->buflen; in _php_stream_fill_read_buffer()
679 if (stream->writepos - stream->readpos < (off_t)size) { in _php_stream_fill_read_buffer()
683 if (stream->readbuf && stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
685 stream->writepos -= stream->readpos; in _php_stream_fill_read_buffer()
691 if (stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
697 justread = stream->ops->read(stream, stream->readbuf + stream->writepos, in _php_stream_fill_read_buffer()
698 stream->readbuflen - stream->writepos in _php_stream_fill_read_buffer()
702 stream->writepos += justread; in _php_stream_fill_read_buffer()
718 if (stream->writepos > stream->readpos) { in _php_stream_read()
720 toread = stream->writepos - stream->readpos; in _php_stream_read()
746 toread = stream->writepos - stream->readpos; in _php_stream_read()
781 if (stream->writepos - stream->readpos > 0) { in _php_stream_eof()
855 avail = stream->writepos - stream->readpos; in php_stream_locate_eol()
918 avail = stream->writepos - stream->readpos; in _php_stream_get_line()
982 if (stream->writepos - stream->readpos == 0) { in _php_stream_get_line()
1004 ((size_t)(((stream)->writepos) - (stream)->readpos))
1126 …s->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && stream->readpos != stream->writepos) { in _php_stream_write_buffer()
1127 stream->readpos = stream->writepos = 0; in _php_stream_write_buffer()
1289 if (offset > 0 && offset <= stream->writepos - stream->readpos) { in _php_stream_seek()
1298 offset <= stream->position + stream->writepos - stream->readpos) { in _php_stream_seek()
1330 stream->readpos = stream->writepos = 0; in _php_stream_seek()