Lines Matching refs:max_len
94 static ssize_t chunk_slurpn(struct buf_chunk *chunk, size_t max_len,
107 if(max_len && n > max_len)
108 n = max_len;
575 ssize_t Curl_bufq_sipn(struct bufq *q, size_t max_len,
594 nread = chunk_slurpn(tail, max_len, reader, reader_ctx, err);
606 * Read up to `max_len` bytes and append it to the end of the buffer queue.
607 * if `max_len` is 0, no limit is imposed and the call behaves exactly
614 static ssize_t bufq_slurpn(struct bufq *q, size_t max_len,
623 n = Curl_bufq_sipn(q, max_len, reader, reader_ctx, err);
639 if(max_len) {
640 DEBUGASSERT((size_t)n <= max_len);
641 max_len -= (size_t)n;
642 if(!max_len)