Lines Matching refs:chunkbuf
479 struct bufq chunkbuf; member
489 Curl_bufq_init2(&ctx->chunkbuf, CURL_CHUNKED_MAXLEN, 2, BUFQ_OPT_SOFT_LIMIT); in cr_chunked_init()
498 Curl_bufq_free(&ctx->chunkbuf); in cr_chunked_close()
512 return Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("0\r\n\r\n"), &n); in add_last_chunk()
515 result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("0\r\n"), &n); in add_last_chunk()
537 result = Curl_bufq_cwrite(&ctx->chunkbuf, tr->data, in add_last_chunk()
540 result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("\r\n"), &n); in add_last_chunk()
545 result = Curl_bufq_cwrite(&ctx->chunkbuf, STRCONST("\r\n"), &n); in add_last_chunk()
592 result = Curl_bufq_cwrite(&ctx->chunkbuf, hd, hdlen, &n); in add_chunk()
594 result = Curl_bufq_cwrite(&ctx->chunkbuf, buf, nread, &n); in add_chunk()
596 result = Curl_bufq_cwrite(&ctx->chunkbuf, "\r\n", 2, &n); in add_chunk()
620 if(!ctx->read_eos && Curl_bufq_is_empty(&ctx->chunkbuf)) { in cr_chunked_read()
627 if(!Curl_bufq_is_empty(&ctx->chunkbuf)) { in cr_chunked_read()
628 result = Curl_bufq_cread(&ctx->chunkbuf, buf, blen, pnread); in cr_chunked_read()
629 if(!result && ctx->read_eos && Curl_bufq_is_empty(&ctx->chunkbuf)) { in cr_chunked_read()