• Home
  • Raw
  • Download

Lines Matching refs:z_stream

1730        (http->coding >= _HTTP_CODING_GUNZIP && ((z_stream *)http->stream)->avail_in == 0)))  in httpPeek()
1777 z_stream stream; /* Copy of decompressor stream */ in httpPeek()
1779 if (http->used > 0 && ((z_stream *)http->stream)->avail_in < HTTP_MAX_BUFFER) in httpPeek()
1781 size_t buflen = buflen = HTTP_MAX_BUFFER - ((z_stream *)http->stream)->avail_in; in httpPeek()
1784 if (((z_stream *)http->stream)->avail_in > 0 && in httpPeek()
1785 ((z_stream *)http->stream)->next_in > http->sbuffer) in httpPeek()
1786 … memmove(http->sbuffer, ((z_stream *)http->stream)->next_in, ((z_stream *)http->stream)->avail_in); in httpPeek()
1788 ((z_stream *)http->stream)->next_in = http->sbuffer; in httpPeek()
1799 memcpy(http->sbuffer + ((z_stream *)http->stream)->avail_in, http->buffer, buflen); in httpPeek()
1800 ((z_stream *)http->stream)->avail_in += buflen; in httpPeek()
1809 (int)((z_stream *)http->stream)->avail_in)); in httpPeek()
1811 if (inflateCopy(&stream, (z_stream *)http->stream) != Z_OK) in httpPeek()
1828 http_debug_hex("2httpPeek", (char *)http->sbuffer, (int)((z_stream *)http->stream)->avail_in); in httpPeek()
1835 bytes = (ssize_t)(length - ((z_stream *)http->stream)->avail_out); in httpPeek()
2002 if (((z_stream *)http->stream)->avail_in > 0) in httpRead2()
2007 (int)((z_stream *)http->stream)->avail_in, (int)length)); in httpRead2()
2009 ((z_stream *)http->stream)->next_out = (Bytef *)buffer; in httpRead2()
2010 ((z_stream *)http->stream)->avail_out = (uInt)length; in httpRead2()
2012 if ((zerr = inflate((z_stream *)http->stream, Z_SYNC_FLUSH)) < Z_OK) in httpRead2()
2016 … http_debug_hex("2httpRead2", (char *)http->sbuffer, (int)((z_stream *)http->stream)->avail_in); in httpRead2()
2023 bytes = (ssize_t)(length - ((z_stream *)http->stream)->avail_out); in httpRead2()
2026 ((z_stream *)http->stream)->avail_in, ((z_stream *)http->stream)->avail_out, in httpRead2()
2034 ssize_t buflen = HTTP_MAX_BUFFER - (ssize_t)((z_stream *)http->stream)->avail_in; in httpRead2()
2039 if (((z_stream *)http->stream)->avail_in > 0 && in httpRead2()
2040 ((z_stream *)http->stream)->next_in > http->sbuffer) in httpRead2()
2041 … memmove(http->sbuffer, ((z_stream *)http->stream)->next_in, ((z_stream *)http->stream)->avail_in); in httpRead2()
2043 ((z_stream *)http->stream)->next_in = http->sbuffer; in httpRead2()
2053 …bytes = http_read_buffered(http, (char *)http->sbuffer + ((z_stream *)http->stream)->avail_in, (si… in httpRead2()
2056 …bytes = http_read_chunk(http, (char *)http->sbuffer + ((z_stream *)http->stream)->avail_in, (size_… in httpRead2()
2069 ((z_stream *)http->stream)->avail_in += (uInt)bytes; in httpRead2()
2148 (http->coding >= _HTTP_CODING_GUNZIP && ((z_stream *)http->stream)->avail_in == 0)) && in httpRead2()
3153 if (http->coding >= _HTTP_CODING_GUNZIP && ((z_stream *)http->stream)->avail_in > 0) in httpWait()
3249 ((z_stream *)http->stream)->next_in = (Bytef *)buffer; in httpWrite2()
3250 ((z_stream *)http->stream)->avail_in = (uInt)length; in httpWrite2()
3252 while (deflate((z_stream *)http->stream, Z_NO_FLUSH) == Z_OK) in httpWrite2()
3254 DEBUG_printf(("1httpWrite2: avail_out=%d", ((z_stream *)http->stream)->avail_out)); in httpWrite2()
3256 if (((z_stream *)http->stream)->avail_out > 0) in httpWrite2()
3259 slen = _HTTP_MAX_SBUFFER - ((z_stream *)http->stream)->avail_out; in httpWrite2()
3276 ((z_stream *)http->stream)->next_out = (Bytef *)http->sbuffer; in httpWrite2()
3277 ((z_stream *)http->stream)->avail_out = (uInt)_HTTP_MAX_SBUFFER; in httpWrite2()
3753 ((z_stream *)http->stream)->next_in = dummy; in http_content_coding_finish()
3754 ((z_stream *)http->stream)->avail_in = 0; in http_content_coding_finish()
3758 zerr = deflate((z_stream *)http->stream, Z_FINISH); in http_content_coding_finish()
3759 bytes = _HTTP_MAX_SBUFFER - ((z_stream *)http->stream)->avail_out; in http_content_coding_finish()
3771 ((z_stream *)http->stream)->next_out = (Bytef *)http->sbuffer; in http_content_coding_finish()
3772 ((z_stream *)http->stream)->avail_out = (uInt)_HTTP_MAX_SBUFFER; in http_content_coding_finish()
3776 deflateEnd((z_stream *)http->stream); in http_content_coding_finish()
3790 inflateEnd((z_stream *)http->stream); in http_content_coding_finish()
3886 if ((http->stream = calloc(1, sizeof(z_stream))) == NULL) in http_content_coding_start()
3896 …if ((zerr = deflateInit2((z_stream *)http->stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, coding == _H… in http_content_coding_start()
3908 ((z_stream *)http->stream)->next_out = (Bytef *)http->sbuffer; in http_content_coding_start()
3909 ((z_stream *)http->stream)->avail_out = (uInt)_HTTP_MAX_SBUFFER; in http_content_coding_start()
3926 if ((http->stream = calloc(1, sizeof(z_stream))) == NULL) in http_content_coding_start()
3936 …if ((zerr = inflateInit2((z_stream *)http->stream, coding == _HTTP_CODING_INFLATE ? -15 : 31)) < Z… in http_content_coding_start()
3948 ((z_stream *)http->stream)->avail_in = 0; in http_content_coding_start()
3949 ((z_stream *)http->stream)->next_in = http->sbuffer; in http_content_coding_start()