Lines Matching refs:buf

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()
148 if(ISXDIGIT(*buf)) { in httpchunk_readwrite()
155 ch->hexbuffer[ch->hexindex++] = *buf; in httpchunk_readwrite()
156 buf++; in httpchunk_readwrite()
164 failf(data, "chunk hex-length char not a hex digit: 0x%x", *buf); in httpchunk_readwrite()
184 if(*buf == 0x0a) { in httpchunk_readwrite()
196 buf++; in httpchunk_readwrite()
213 buf, piece); in httpchunk_readwrite()
216 (char *)buf, piece); in httpchunk_readwrite()
226 buf += piece; /* move read pointer forward */ in httpchunk_readwrite()
238 if(*buf == 0x0a) { in httpchunk_readwrite()
242 else if(*buf != 0x0d) { in httpchunk_readwrite()
247 buf++; in httpchunk_readwrite()
253 if((*buf == 0x0d) || (*buf == 0x0a)) { in httpchunk_readwrite()
287 if(*buf == 0x0a) in httpchunk_readwrite()
298 result = Curl_dyn_addn(&ch->trailer, buf, 1); in httpchunk_readwrite()
305 buf++; in httpchunk_readwrite()
311 if(*buf == 0x0a) { in httpchunk_readwrite()
313 buf++; in httpchunk_readwrite()
327 if((*buf != 0x0d) && (*buf != 0x0a)) { in httpchunk_readwrite()
332 if(*buf == 0x0d) { in httpchunk_readwrite()
334 buf++; in httpchunk_readwrite()
343 if(*buf == 0x0a) { in httpchunk_readwrite()
357 (unsigned int)*buf); 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()
556 char *buf, size_t blen) in add_chunk() argument
568 buf = tmp; in add_chunk()
576 result = Curl_creader_read(data, reader->next, buf, blen, &nread, &eos); in add_chunk()
594 result = Curl_bufq_cwrite(&ctx->chunkbuf, buf, nread, &n); 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()