Go to the documentation of this file.
38 stream_size != (
int)(
sizeof(
z_stream)))
41 windowBits < 8 || windowBits > 15)
44 if (
strm->zalloc == (alloc_func)0) {
52 if (
strm->zfree == (free_func)0)
65 state->wsize = 1U << windowBits;
87 static int virgin = 1;
98 while (sym < 144)
state->lens[sym++] = 8;
99 while (sym < 256)
state->lens[sym++] = 9;
100 while (sym < 280)
state->lens[sym++] = 7;
101 while (sym < 288)
state->lens[sym++] = 8;
109 while (sym < 32)
state->lens[sym++] = 5;
131 put = strm->next_out; \
132 left = strm->avail_out; \
133 next = strm->next_in; \
134 have = strm->avail_in; \
135 hold = state->hold; \
136 bits = state->bits; \
142 strm->next_out = put; \
143 strm->avail_out = left; \
144 strm->next_in = next; \
145 strm->avail_in = have; \
146 state->hold = hold; \
147 state->bits = bits; \
162 have = in(in_desc, &next); \
177 hold += (unsigned long)(*next++) << bits; \
184 #define NEEDBITS(n) \
186 while (bits < (unsigned)(n)) \
192 ((unsigned)hold & ((1U << (n)) - 1))
195 #define DROPBITS(n) \
198 bits -= (unsigned)(n); \
214 put = state->window; \
215 left = state->wsize; \
216 state->whave = left; \
217 if (out(out_desc, put, left)) { \
260 unsigned char FAR *put;
270 static const unsigned short order[19] =
271 {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};
292 switch (
state->mode) {
306 state->last ?
" (last)" :
""));
312 state->last ?
" (last)" :
""));
317 state->last ?
" (last)" :
""));
321 strm->msg = (
char *)
"invalid block type";
331 if ((
hold & 0xffff) != ((
hold >> 16) ^ 0xffff)) {
332 strm->msg = (
char *)
"invalid stored block lengths";
342 while (
state->length != 0) {
368 #ifndef PKZIP_BUG_WORKAROUND
370 strm->msg = (
char *)
"too many length or distance symbols";
384 while (
state->have < 19)
392 strm->msg = (
char *)
"invalid code lengths set";
403 if ((
unsigned)(here.
bits) <=
bits)
break;
411 if (here.
val == 16) {
414 if (
state->have == 0) {
415 strm->msg = (
char *)
"invalid bit length repeat";
423 else if (here.
val == 17) {
438 strm->msg = (
char *)
"invalid bit length repeat";
451 if (
state->lens[256] == 0) {
452 strm->msg = (
char *)
"invalid code -- missing end-of-block";
466 strm->msg = (
char *)
"invalid literal/lengths set";
475 strm->msg = (
char *)
"invalid distances set";
485 if (
have >= 6 && left >= 258) {
497 if ((
unsigned)(here.
bits) <=
bits)
break;
500 if (here.
op && (here.
op & 0xf0) == 0) {
516 "inflate: literal '%c'\n" :
517 "inflate: literal 0x%02x\n", here.
val));
519 *put++ = (
unsigned char)(
state->length);
534 strm->msg = (
char *)
"invalid literal/length code";
540 state->extra = (unsigned)(here.
op) & 15;
541 if (
state->extra != 0) {
551 if ((
unsigned)(here.
bits) <=
bits)
break;
554 if ((here.
op & 0xf0) == 0) {
566 strm->msg = (
char *)
"invalid distance code";
573 state->extra = (
unsigned)(here.
op) & 15;
574 if (
state->extra != 0) {
581 strm->msg = (
char *)
"invalid distance too far back";
605 }
while (
state->length != 0);
625 if (left < state->
wsize) {
int fixed(struct state *s)
unsigned char FAR * window
static int copy(grpc_slice_buffer *input, grpc_slice_buffer *output)
#define ZALLOC(strm, items, size)
void fixedtables OF((struct inflate_state FAR *state))
voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
int ZEXPORT inflateBackEnd(z_streamp strm)
void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)
for(map_begin_internal(intern, &it);!map_done(&it);map_next(&it))
int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens, unsigned codes, code FAR *FAR *table, unsigned FAR *bits, unsigned short FAR *work)
static const code lenfix[512]
OPENSSL_EXPORT ASN1_BIT_STRING * bits
void fixedtables(struct inflate_state FAR *state)
#define ZFREE(strm, addr)
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
static const code distfix[32]
void inflate_fast(z_streamp strm, unsigned start)
UniquePtr< SSL_SESSION > ret
AllocList * next[kMaxLevel]
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
void ZLIB_INTERNAL zmemcpy(Bytef *dest, const Bytef *source, uInt len)
if(p->owned &&p->wrapped !=NULL)
static struct rpc_state state
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:02