Lines Matching refs:max_len
111 static ssize_t chunk_slurpn(struct buf_chunk *chunk, size_t max_len, in chunk_slurpn() argument
124 if(max_len && n > max_len) in chunk_slurpn()
125 n = max_len; in chunk_slurpn()
665 ssize_t Curl_bufq_sipn(struct bufq *q, size_t max_len, in Curl_bufq_sipn() argument
684 nread = chunk_slurpn(tail, max_len, reader, reader_ctx, err); in Curl_bufq_sipn()
704 static ssize_t bufq_slurpn(struct bufq *q, size_t max_len, in bufq_slurpn() argument
713 n = Curl_bufq_sipn(q, max_len, reader, reader_ctx, err); in bufq_slurpn()
729 if(max_len) { in bufq_slurpn()
730 DEBUGASSERT((size_t)n <= max_len); in bufq_slurpn()
731 max_len -= (size_t)n; in bufq_slurpn()
732 if(!max_len) in bufq_slurpn()