Lines Matching refs:readbuffer

65 	if (curlstream->readbuffer.writepos == 0) {  in on_data_available()
77 php_stream_seek(curlstream->readbuffer.buf, curlstream->readbuffer.writepos, SEEK_SET); in on_data_available()
78 wrote = php_stream_write(curlstream->readbuffer.buf, data, size * nmemb); in on_data_available()
79 curlstream->readbuffer.writepos = php_stream_tell(curlstream->readbuffer.buf); in on_data_available()
155 if (curlstream->readbuffer.readpos >= curlstream->readbuffer.writepos && curlstream->pending) { in php_curl_stream_read()
160 if (curlstream->readbuffer.writepos == 0) { in php_curl_stream_read()
192 curlstream->readbuffer.readpos >= curlstream->readbuffer.writepos && curlstream->pending > 0); in php_curl_stream_read()
197 …if (curlstream->readbuffer.writepos > 0 && curlstream->readbuffer.readpos < curlstream->readbuffer in php_curl_stream_read()
198 php_stream_seek(curlstream->readbuffer.buf, curlstream->readbuffer.readpos, SEEK_SET); in php_curl_stream_read()
199 didread = php_stream_read(curlstream->readbuffer.buf, buf, count); in php_curl_stream_read()
200 curlstream->readbuffer.readpos = php_stream_tell(curlstream->readbuffer.buf); in php_curl_stream_read()
254 return php_stream_cast(curlstream->readbuffer.buf, castas, ret, 0); in php_curl_stream_cast()
293 curlstream->readbuffer.buf = php_stream_fopen_tmpfile(); in php_curl_stream_opener()
297 curlstream->readbuffer.buf = php_stream_temp_new(); in php_curl_stream_opener()
453 php_stream_to_zval(curlstream->readbuffer.buf, tmp); in php_curl_stream_opener()