Lines Matching refs:blen
71 int type, const char *buf, size_t blen) in Curl_client_write() argument
91 result = Curl_cwriter_write(data, data->req.writer_stack, type, buf, blen); in Curl_client_write()
93 type, blen, result); in Curl_client_write()
528 char *buf, size_t blen, size_t *nread, bool *eos) in Curl_creader_read() argument
534 return reader->crt->do_read(data, reader, buf, blen, nread, eos); in Curl_creader_read()
554 char *buf, size_t blen, in Curl_creader_def_read() argument
558 return reader->next->crt->do_read(data, reader->next, buf, blen, in Curl_creader_def_read()
651 char *buf, size_t blen, in cr_in_read() argument
674 blen = 0; in cr_in_read()
675 else if(remain < (curl_off_t)blen) in cr_in_read()
676 blen = (size_t)remain; in cr_in_read()
679 if(ctx->read_cb && blen) { in cr_in_read()
681 nread = ctx->read_cb(buf, 1, blen, ctx->cb_user_data); in cr_in_read()
724 if(nread > blen) { in cr_in_read()
742 blen, ctx->total_len, ctx->read_len, CURLE_OK, in cr_in_read()
973 char *buf, size_t blen, in cr_lc_read() argument
995 result = Curl_creader_read(data, reader->next, buf, blen, &nread, &eos); in cr_lc_read()
1043 result = Curl_bufq_cread(&ctx->buf, buf, blen, pnread); in cr_lc_read()
1052 blen, result, *pnread, *peos); in cr_lc_read()
1179 CURLcode Curl_client_read(struct Curl_easy *data, char *buf, size_t blen, in Curl_client_read() argument
1185 DEBUGASSERT(blen); in Curl_client_read()
1196 result = Curl_creader_read(data, data->req.reader_stack, buf, blen, in Curl_client_read()
1199 blen, result, *nread, *eos); in Curl_client_read()
1218 char *buf, size_t blen, in cr_null_read() argument
1224 (void)blen; in cr_null_read()
1270 size_t blen; member
1276 char *buf, size_t blen, in cr_buf_read() argument
1280 size_t nread = ctx->blen - ctx->index; in cr_buf_read()
1288 if(nread > blen) in cr_buf_read()
1289 nread = blen; in cr_buf_read()
1293 *peos = (ctx->index == ctx->blen); in cr_buf_read()
1296 blen, *pnread, *peos); in cr_buf_read()
1313 return (curl_off_t)ctx->blen; in cr_buf_total_length()
1331 if(boffset > ctx->blen) in cr_buf_resume_from()
1335 ctx->blen -= boffset; in cr_buf_resume_from()
1355 const char *buf, size_t blen) in Curl_creader_set_buf() argument
1366 ctx->blen = blen; in Curl_creader_set_buf()
1372 CURL_TRC_READ(data, "add buf reader, len=%zu -> %d", blen, result); in Curl_creader_set_buf()