Lines Matching refs:chunk_size

296 	ret->chunk_size = FG(def_chunk_size);  in _php_stream_alloc()
546 size_t to_read_now = MIN(size, stream->chunk_size); in _php_stream_fill_read_buffer()
552 chunk_buf = emalloc(stream->chunk_size); in _php_stream_fill_read_buffer()
562 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size); in _php_stream_fill_read_buffer()
664 if (stream->readbuf && stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
674 if (stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer()
675 stream->readbuflen += stream->chunk_size; in _php_stream_fill_read_buffer()
721 …am->readfilters.head && ((stream->flags & PHP_STREAM_FLAG_NO_BUFFER) || stream->chunk_size == 1)) { in _php_stream_read()
987 toread = stream->chunk_size; in _php_stream_get_line()
990 if (toread > stream->chunk_size) { in _php_stream_get_line()
991 toread = stream->chunk_size; in _php_stream_get_line()
1068 to_read_now = MIN(maxlen - buffered_len, stream->chunk_size); in php_stream_get_record()
1148 size_t chunk_size = count; in _php_stream_write_buffer() local
1151 chunk_size = stream->chunk_size; in _php_stream_write_buffer()
1155 ssize_t justwrote = stream->ops->write(stream, buf, MIN(chunk_size, count)); in _php_stream_write_buffer()
1413 ret = stream->chunk_size > INT_MAX ? INT_MAX : (int)stream->chunk_size; in _php_stream_set_option()
1414 stream->chunk_size = value; in _php_stream_set_option()
1673 size_t chunk_size, must_read, mapped; in _php_stream_copy_to_stream_ex() local
1676 must_read = chunk_size = PHP_STREAM_MMAP_MAX; in _php_stream_copy_to_stream_ex()
1680 chunk_size = PHP_STREAM_MMAP_MAX; in _php_stream_copy_to_stream_ex()
1684 chunk_size = must_read; in _php_stream_copy_to_stream_ex()
1688 …p = php_stream_mmap_range(src, php_stream_tell(src), chunk_size, PHP_STREAM_MAP_MODE_SHARED_READON… in _php_stream_copy_to_stream_ex()
1715 if (mapped < chunk_size) { in _php_stream_copy_to_stream_ex()