Lines Matching refs:blen

118                                     const char *buf, size_t blen,  in httpchunk_readwrite()  argument
135 result = Curl_cwriter_write(data, cw_next, CLIENTWRITE_BODY, buf, blen); in httpchunk_readwrite()
137 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)buf, blen); in httpchunk_readwrite()
145 while(blen) { in httpchunk_readwrite()
157 blen--; in httpchunk_readwrite()
197 blen--; in httpchunk_readwrite()
205 piece = blen; in httpchunk_readwrite()
206 if(ch->datasize < (curl_off_t)blen) in httpchunk_readwrite()
227 blen -= piece; /* decrease space left in this round */ in httpchunk_readwrite()
248 blen--; in httpchunk_readwrite()
306 blen--; in httpchunk_readwrite()
314 blen--; in httpchunk_readwrite()
335 blen--; in httpchunk_readwrite()
344 blen--; in httpchunk_readwrite()
348 ch->datasize = blen; in httpchunk_readwrite()
393 char *buf, size_t blen, in Curl_httpchunk_read() argument
396 return httpchunk_readwrite(data, ch, NULL, buf, blen, pconsumed); in Curl_httpchunk_read()
423 const char *buf, size_t blen) in cw_chunked_write() argument
430 return Curl_cwriter_write(data, writer->next, type, buf, blen); in cw_chunked_write()
433 result = httpchunk_readwrite(data, &ctx->ch, writer->next, buf, blen, in cw_chunked_write()
447 blen -= consumed; in cw_chunked_write()
451 if(blen) { in cw_chunked_write()
452 infof(data, "Leftovers after chunking: %zu bytes", blen); in cw_chunked_write()
556 char *buf, size_t blen) in add_chunk() argument
565 blen = CURLMIN(blen, CURL_CHUNKED_MAXLEN); /* respect our buffer pref */ in add_chunk()
566 if(blen < sizeof(tmp)) { in add_chunk()
569 blen = sizeof(tmp); in add_chunk()
573 blen -= (8 + 2 + 2); /* deduct max overhead, 8 hex + 2*crlf */ in add_chunk()
576 result = Curl_creader_read(data, reader->next, buf, blen, &nread, &eos); in add_chunk()
610 char *buf, size_t blen, in cr_chunked_read() argument
622 result = add_chunk(data, reader, buf, blen); in cr_chunked_read()
628 result = Curl_bufq_cread(&ctx->chunkbuf, buf, blen, pnread); in cr_chunked_read()