Lines Matching refs:buflen
606 if (stream->readbuf && stream->readbuflen - stream->writepos < bucket->buflen) {
614 if (stream->readbuflen - stream->writepos < bucket->buflen) {
615 stream->readbuflen += bucket->buflen;
619 if (bucket->buflen) {
620 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen);
622 stream->writepos += bucket->buflen;
1245 if (_php_stream_write_buffer(stream, bucket->buf, bucket->buflen) < 0) {
1520 size_t len = 0, buflen;
1568 buflen = MAX(ssbuf.sb.st_size - src->position, 0) + step;
1569 if (maxlen > 0 && buflen > maxlen) {
1570 buflen = maxlen;
1573 buflen = step;
1576 result = zend_string_alloc(buflen, persistent);
1580 while ((ret = php_stream_read(src, ptr, buflen - len)) > 0) {
1582 if (len + min_room >= buflen) {
1586 if (maxlen > 0 && buflen + step > maxlen) {
1587 buflen = maxlen;
1589 buflen += step;
1591 result = zend_string_extend(result, buflen, persistent);