Lines Matching refs:maxlen

814 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen,  in _php_stream_get_line()  argument
825 } else if (maxlen == 0) { in _php_stream_get_line()
873 if (cpysz >= maxlen - 1) { in _php_stream_get_line()
874 cpysz = maxlen - 1; in _php_stream_get_line()
884 maxlen -= cpysz; in _php_stream_get_line()
899 toread = maxlen - 1; in _php_stream_get_line()
932 size_t maxlen, in _php_stream_search_delim() argument
940 seek_len = MIN(STREAM_BUFFERED_AMOUNT(stream), maxlen); in _php_stream_search_delim()
955 PHPAPI char *php_stream_get_record(php_stream *stream, size_t maxlen, size_t *returned_len, char *d… in php_stream_get_record() argument
963 if (maxlen == 0) { in php_stream_get_record()
969 stream, maxlen, 0, delim, delim_len TSRMLS_CC); in php_stream_get_record()
974 while (!found_delim && buffered_len < maxlen) { in php_stream_get_record()
978 to_read_now = MIN(maxlen - buffered_len, stream->chunk_size); in php_stream_get_record()
998 stream, maxlen, in php_stream_get_record()
1012 } else if (!has_delim && STREAM_BUFFERED_AMOUNT(stream) >= maxlen) { in php_stream_get_record()
1013 tent_ret_len = maxlen; in php_stream_get_record()
1019 if (STREAM_BUFFERED_AMOUNT(stream) < maxlen && !stream->eof) { in php_stream_get_record()
1026 tent_ret_len = MIN(STREAM_BUFFERED_AMOUNT(stream), maxlen); in php_stream_get_record()
1350 PHPAPI size_t _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen, int persistent ST… in _php_stream_copy_to_mem() argument
1359 if (maxlen == 0) { in _php_stream_copy_to_mem()
1363 if (maxlen == PHP_STREAM_COPY_ALL) { in _php_stream_copy_to_mem()
1364 maxlen = 0; in _php_stream_copy_to_mem()
1367 if (maxlen > 0) { in _php_stream_copy_to_mem()
1368 ptr = *buf = pemalloc_rel_orig(maxlen + 1, persistent); in _php_stream_copy_to_mem()
1369 while ((len < maxlen) && !php_stream_eof(src)) { in _php_stream_copy_to_mem()
1370 ret = php_stream_read(src, ptr, maxlen - len); in _php_stream_copy_to_mem()
1421 PHPAPI size_t _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, size_… in _php_stream_copy_to_stream_ex() argument
1434 if (maxlen == 0) { in _php_stream_copy_to_stream_ex()
1439 if (maxlen == PHP_STREAM_COPY_ALL) { in _php_stream_copy_to_stream_ex()
1440 maxlen = 0; in _php_stream_copy_to_stream_ex()
1458 …p = php_stream_mmap_range(src, php_stream_tell(src), maxlen, PHP_STREAM_MAP_MODE_SHARED_READONLY, … in _php_stream_copy_to_stream_ex()
1480 if (maxlen && (maxlen - haveread) < readchunk) { in _php_stream_copy_to_stream_ex()
1481 readchunk = maxlen - haveread; in _php_stream_copy_to_stream_ex()
1509 if (maxlen - haveread == 0) { in _php_stream_copy_to_stream_ex()
1529 PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_D… in _php_stream_copy_to_stream()
1532 int ret = _php_stream_copy_to_stream_ex(src, dest, maxlen, &len STREAMS_REL_CC TSRMLS_CC); in _php_stream_copy_to_stream()
1533 if (ret == SUCCESS && len == 0 && maxlen != 0) { in _php_stream_copy_to_stream()