Home
last modified time | relevance | path

Searched refs:writepos (Results 1 – 9 of 9) sorted by relevance

/PHP-5.4/main/streams/
H A Dfilter.c351 if (&(stream->readfilters) == chain && (stream->writepos - stream->readpos) > 0) { in php_stream_filter_append_ex()
363 if (stream->readpos + consumed > (uint)stream->writepos) { in php_stream_filter_append_ex()
387 stream->writepos = 0; in php_stream_filter_append_ex()
394 stream->writepos = 0; in php_stream_filter_append_ex()
401 if (stream->readbuflen - stream->writepos < bucket->buflen) { in php_stream_filter_append_ex()
405 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in php_stream_filter_append_ex()
406 stream->writepos += bucket->buflen; in php_stream_filter_append_ex()
489 stream->writepos -= stream->readpos; in _php_stream_filter_flush()
491 if (flushed_size > (stream->readbuflen - stream->writepos)) { in _php_stream_filter_flush()
496 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in _php_stream_filter_flush()
[all …]
H A Dstreams.c588 stream->writepos = stream->readpos = 0; in _php_stream_fill_read_buffer()
645 stream->writepos += bucket->buflen; in _php_stream_fill_read_buffer()
685 stream->writepos -= stream->readpos; 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()
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()
1127 stream->readpos = stream->writepos = 0; in _php_stream_write_buffer()
[all …]
H A Dcast.c212 stream->readpos = stream->writepos = 0; in _php_stream_cast()
329 if ((stream->writepos - stream->readpos) > 0 && in _php_stream_cast()
337 … bytes of buffered data lost during stream conversion!", (long)(stream->writepos - stream->readpos… in _php_stream_cast()
H A Dtransports.c422 recvd_len = stream->writepos - stream->readpos; in php_stream_xport_recvfrom()
/PHP-5.4/ext/curl/
H A Dstreams.c65 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()
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()
H A Dphp_curl.h166 off_t readpos, writepos; member
/PHP-5.4/ext/phar/
H A Dzip.c583 fp->writepos = fp->readpos = 0; in phar_parse_zipfile()
587 fp->writepos = 0; in phar_parse_zipfile()
590 fp->writepos = 0; in phar_parse_zipfile()
/PHP-5.4/ext/standard/
H A Dstreamsfuncs.c527 add_assoc_long(return_value, "unread_bytes", stream->writepos - stream->readpos); in PHP_FUNCTION()
740 if ((stream->writepos - stream->readpos) > 0) { in stream_array_emulate_read_fd_set()
/PHP-5.4/main/
H A Dphp_streams.h222 off_t writepos; member

Completed in 30 milliseconds