Lines Matching refs:z_stream

1685        (http->coding >= _HTTP_CODING_GUNZIP && ((z_stream *)http->stream)->avail_in == 0)))  in httpPeek()
1732 z_stream stream; /* Copy of decompressor stream */ in httpPeek()
1734 if (http->used > 0 && ((z_stream *)http->stream)->avail_in < HTTP_MAX_BUFFER) in httpPeek()
1736 size_t buflen = HTTP_MAX_BUFFER - ((z_stream *)http->stream)->avail_in; in httpPeek()
1739 if (((z_stream *)http->stream)->avail_in > 0 && in httpPeek()
1740 ((z_stream *)http->stream)->next_in > http->sbuffer) in httpPeek()
1741 … memmove(http->sbuffer, ((z_stream *)http->stream)->next_in, ((z_stream *)http->stream)->avail_in); in httpPeek()
1743 ((z_stream *)http->stream)->next_in = http->sbuffer; in httpPeek()
1754 memcpy(http->sbuffer + ((z_stream *)http->stream)->avail_in, http->buffer, buflen); in httpPeek()
1755 ((z_stream *)http->stream)->avail_in += buflen; in httpPeek()
1764 (int)((z_stream *)http->stream)->avail_in)); in httpPeek()
1766 if (inflateCopy(&stream, (z_stream *)http->stream) != Z_OK) in httpPeek()
1783 http_debug_hex("2httpPeek", (char *)http->sbuffer, (int)((z_stream *)http->stream)->avail_in); in httpPeek()
1790 bytes = (ssize_t)(length - ((z_stream *)http->stream)->avail_out); in httpPeek()
1962 if (((z_stream *)http->stream)->avail_in > 0) in httpRead2()
1967 (int)((z_stream *)http->stream)->avail_in, (int)length)); in httpRead2()
1969 ((z_stream *)http->stream)->next_out = (Bytef *)buffer; in httpRead2()
1970 ((z_stream *)http->stream)->avail_out = (uInt)length; in httpRead2()
1972 if ((zerr = inflate((z_stream *)http->stream, Z_SYNC_FLUSH)) < Z_OK) in httpRead2()
1976 … http_debug_hex("2httpRead2", (char *)http->sbuffer, (int)((z_stream *)http->stream)->avail_in); in httpRead2()
1983 bytes = (ssize_t)(length - ((z_stream *)http->stream)->avail_out); in httpRead2()
1986 ((z_stream *)http->stream)->avail_in, ((z_stream *)http->stream)->avail_out, in httpRead2()
1994 ssize_t buflen = HTTP_MAX_BUFFER - (ssize_t)((z_stream *)http->stream)->avail_in; in httpRead2()
1999 if (((z_stream *)http->stream)->avail_in > 0 && in httpRead2()
2000 ((z_stream *)http->stream)->next_in > http->sbuffer) in httpRead2()
2001 … memmove(http->sbuffer, ((z_stream *)http->stream)->next_in, ((z_stream *)http->stream)->avail_in); in httpRead2()
2003 ((z_stream *)http->stream)->next_in = http->sbuffer; in httpRead2()
2013 …bytes = http_read_buffered(http, (char *)http->sbuffer + ((z_stream *)http->stream)->avail_in, (si… in httpRead2()
2016 …bytes = http_read_chunk(http, (char *)http->sbuffer + ((z_stream *)http->stream)->avail_in, (size_… in httpRead2()
2029 ((z_stream *)http->stream)->avail_in += (uInt)bytes; in httpRead2()
2108 (http->coding >= _HTTP_CODING_GUNZIP && ((z_stream *)http->stream)->avail_in == 0)) && in httpRead2()
3089 if (http->coding >= _HTTP_CODING_GUNZIP && ((z_stream *)http->stream)->avail_in > 0) in httpWait()
3185 ((z_stream *)http->stream)->next_in = (Bytef *)buffer; in httpWrite2()
3186 ((z_stream *)http->stream)->avail_in = (uInt)length; in httpWrite2()
3188 while (deflate((z_stream *)http->stream, Z_NO_FLUSH) == Z_OK) in httpWrite2()
3190 DEBUG_printf(("1httpWrite2: avail_out=%d", ((z_stream *)http->stream)->avail_out)); in httpWrite2()
3192 if (((z_stream *)http->stream)->avail_out > 0) in httpWrite2()
3195 slen = _HTTP_MAX_SBUFFER - ((z_stream *)http->stream)->avail_out; in httpWrite2()
3212 ((z_stream *)http->stream)->next_out = (Bytef *)http->sbuffer; in httpWrite2()
3213 ((z_stream *)http->stream)->avail_out = (uInt)_HTTP_MAX_SBUFFER; in httpWrite2()
3710 ((z_stream *)http->stream)->next_in = dummy; in http_content_coding_finish()
3711 ((z_stream *)http->stream)->avail_in = 0; in http_content_coding_finish()
3715 zerr = deflate((z_stream *)http->stream, Z_FINISH); in http_content_coding_finish()
3716 bytes = _HTTP_MAX_SBUFFER - ((z_stream *)http->stream)->avail_out; in http_content_coding_finish()
3728 ((z_stream *)http->stream)->next_out = (Bytef *)http->sbuffer; in http_content_coding_finish()
3729 ((z_stream *)http->stream)->avail_out = (uInt)_HTTP_MAX_SBUFFER; in http_content_coding_finish()
3733 deflateEnd((z_stream *)http->stream); in http_content_coding_finish()
3747 inflateEnd((z_stream *)http->stream); in http_content_coding_finish()
3843 if ((http->stream = calloc(1, sizeof(z_stream))) == NULL) in http_content_coding_start()
3853 …if ((zerr = deflateInit2((z_stream *)http->stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, coding == _H… in http_content_coding_start()
3865 ((z_stream *)http->stream)->next_out = (Bytef *)http->sbuffer; in http_content_coding_start()
3866 ((z_stream *)http->stream)->avail_out = (uInt)_HTTP_MAX_SBUFFER; in http_content_coding_start()
3883 if ((http->stream = calloc(1, sizeof(z_stream))) == NULL) in http_content_coding_start()
3893 …if ((zerr = inflateInit2((z_stream *)http->stream, coding == _HTTP_CODING_INFLATE ? -15 : 31)) < Z… in http_content_coding_start()
3905 ((z_stream *)http->stream)->avail_in = 0; in http_content_coding_start()
3906 ((z_stream *)http->stream)->next_in = http->sbuffer; in http_content_coding_start()