Lines Matching refs:blen

186                           const char *buf, size_t blen,  in xfer_send()  argument
193 DEBUGASSERT(hds_len <= blen); in xfer_send()
198 size_t body_len = blen - hds_len; in xfer_send()
203 blen = hds_len + body_small; in xfer_send()
210 size_t body_bytes = blen - hds_len; in xfer_send()
212 blen = hds_len + (size_t)data->set.max_send_speed; in xfer_send()
217 Curl_bufq_len(&data->req.sendbuf) == blen)) { in xfer_send()
218 DEBUGF(infof(data, "sending last upload chunk of %zu bytes", blen)); in xfer_send()
221 result = Curl_xfer_send(data, buf, blen, eos, pnwritten); in xfer_send()
223 if(eos && (blen == *pnwritten)) in xfer_send()
244 size_t blen; in req_send_buffer_flush() local
246 while(Curl_bufq_peek(&data->req.sendbuf, &buf, &blen)) { in req_send_buffer_flush()
247 size_t nwritten, hds_len = CURLMIN(data->req.sendbuf_hds_len, blen); in req_send_buffer_flush()
248 result = xfer_send(data, (const char *)buf, blen, hds_len, &nwritten); in req_send_buffer_flush()
258 if(nwritten < blen) in req_send_buffer_flush()
366 const char *buf, size_t blen, in req_send_buffer_add() argument
372 (const unsigned char *)buf, blen, &result); in req_send_buffer_add()
376 DEBUGASSERT((size_t)n == blen); in req_send_buffer_add()
385 size_t blen, nwritten; in Curl_req_send() local
391 blen = Curl_dyn_len(req); in Curl_req_send()
395 result = xfer_send(data, buf, blen, blen, &nwritten); in Curl_req_send()
399 blen -= nwritten; in Curl_req_send()
402 if(blen) { in Curl_req_send()
406 result = req_send_buffer_add(data, buf, blen, blen); in Curl_req_send()