Home
last modified time | relevance | path

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

/PHP-8.1/main/streams/
H A Dfilter.c320 if (&(stream->readfilters) == chain && (stream->writepos - stream->readpos) > 0) { in php_stream_filter_append_ex()
332 if (stream->readpos + consumed > (uint32_t)stream->writepos) { in php_stream_filter_append_ex()
356 stream->writepos = 0; in php_stream_filter_append_ex()
361 stream->writepos = 0; in php_stream_filter_append_ex()
368 if (stream->readbuflen - stream->writepos < bucket->buflen) { in php_stream_filter_append_ex()
372 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in php_stream_filter_append_ex()
373 stream->writepos += bucket->buflen; in php_stream_filter_append_ex()
456 stream->writepos -= stream->readpos; in _php_stream_filter_flush()
458 if (flushed_size > (stream->readbuflen - stream->writepos)) { in _php_stream_filter_flush()
463 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in _php_stream_filter_flush()
[all …]
H A Dstreams.c603 stream->writepos -= stream->readpos; in _php_stream_fill_read_buffer()
615 stream->writepos += bucket->buflen; in _php_stream_fill_read_buffer()
651 if (stream->writepos > stream->readpos) { in _php_stream_fill_read_buffer()
654 stream->writepos -= stream->readpos; in _php_stream_fill_read_buffer()
667 stream->readbuflen - stream->writepos in _php_stream_fill_read_buffer()
672 stream->writepos += justread; in _php_stream_fill_read_buffer()
688 if (stream->writepos > stream->readpos) { in _php_stream_read()
856 avail = stream->writepos - stream->readpos; in php_stream_locate_eol()
919 avail = stream->writepos - stream->readpos; in _php_stream_get_line()
1128 stream->readpos = stream->writepos = 0; in _php_stream_write_buffer()
[all …]
H A Dcast.c201 stream->readpos = stream->writepos = 0; in _php_stream_cast()
320 if ((stream->writepos - stream->readpos) > 0 && in _php_stream_cast()
328 …s of buffered data lost during stream conversion!", (zend_long)(stream->writepos - stream->readpos… in _php_stream_cast()
H A Dtransports.c420 recvd_len = stream->writepos - stream->readpos; in php_stream_xport_recvfrom()
/PHP-8.1/ext/standard/
H A Dhttp_fopen_wrapper.c971 if (stream->writepos > stream->readpos) { in php_stream_url_wrap_http_ex()
972 php_stream_notify_progress_increment(context, stream->writepos - stream->readpos, 0); in php_stream_url_wrap_http_ex()
H A Dstreamsfuncs.c577 add_assoc_long(return_value, "unread_bytes", stream->writepos - stream->readpos); in PHP_FUNCTION()
731 if ((stream->writepos - stream->readpos) > 0) { in stream_array_emulate_read_fd_set()
/PHP-8.1/main/
H A Dphp_streams.h227 zend_off_t writepos; member
/PHP-8.1/ext/phar/
H A Dzip.c590 fp->writepos = 0; in phar_parse_zipfile()
593 fp->writepos = 0; in phar_parse_zipfile()
/PHP-8.1/ext/openssl/
H A Dxp_ssl.c2568 if (stream->writepos == stream->readpos in php_openssl_sockop_cast()

Completed in 59 milliseconds