Lines Matching refs:nbytes

298                                        const char *buf, size_t nbytes)  in deflate_do_write()  argument
303 if(!(type & CLIENTWRITE_BODY) || !nbytes) in deflate_do_write()
304 return Curl_cwriter_write(data, writer->next, type, buf, nbytes); in deflate_do_write()
308 z->avail_in = (uInt) nbytes; in deflate_do_write()
455 const char *buf, size_t nbytes) in gzip_do_write() argument
460 if(!(type & CLIENTWRITE_BODY) || !nbytes) in gzip_do_write()
461 return Curl_cwriter_write(data, writer->next, type, buf, nbytes); in gzip_do_write()
466 z->avail_in = (uInt) nbytes; in gzip_do_write()
494 switch(check_gzip_header((unsigned char *) buf, nbytes, &hlen)) { in gzip_do_write()
497 z->avail_in = (uInt) (nbytes - hlen); in gzip_do_write()
509 z->avail_in = (uInt) nbytes; in gzip_do_write()
531 z->avail_in += (uInt) nbytes; in gzip_do_write()
537 memcpy(z->next_in + z->avail_in - nbytes, buf, nbytes); in gzip_do_write()
544 z->next_in = (Bytef *) buf + hlen + nbytes - z->avail_in; in gzip_do_write()
563 z->avail_in = (uInt) nbytes; in gzip_do_write()
570 z->avail_in = (uInt) nbytes; in gzip_do_write()
662 const char *buf, size_t nbytes) in brotli_do_write() argument
672 if(!(type & CLIENTWRITE_BODY) || !nbytes) in brotli_do_write()
673 return Curl_cwriter_write(data, writer->next, type, buf, nbytes); in brotli_do_write()
682 while((nbytes || r == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) && in brotli_do_write()
687 &nbytes, &src, &dstleft, &dst, NULL); in brotli_do_write()
699 if(nbytes) in brotli_do_write()
757 const char *buf, size_t nbytes) in zstd_do_write() argument
765 if(!(type & CLIENTWRITE_BODY) || !nbytes) in zstd_do_write()
766 return Curl_cwriter_write(data, writer->next, type, buf, nbytes); in zstd_do_write()
775 in.size = nbytes; in zstd_do_write()
792 if((in.pos == nbytes) && (out.pos < out.size)) in zstd_do_write()
910 const char *buf, size_t nbytes) in error_do_write() argument
914 (void) nbytes; in error_do_write()
916 if(!(type & CLIENTWRITE_BODY) || !nbytes) in error_do_write()
917 return Curl_cwriter_write(data, writer->next, type, buf, nbytes); in error_do_write()