Searched refs:max_len (Results 1 – 3 of 3) sorted by relevance
/curl/tests/unit/ |
H A D | unit2601.c | 97 size_t max_len = chunk_size * max_chunks; in check_bufq() local 135 if(nwritten != max_len) { in check_bufq() 137 nwritten, max_len); in check_bufq() 154 if(nread != max_len) { in check_bufq() 156 nwritten, max_len); in check_bufq() 190 if(nwritten < max_len) { in check_bufq() 192 nwritten, max_len); in check_bufq()
|
/curl/lib/ |
H A D | bufq.c | 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() [all …]
|
H A D | bufq.h | 262 ssize_t Curl_bufq_sipn(struct bufq *q, size_t max_len,
|
Completed in 8 milliseconds