Lines Matching refs:wrap
225 int wrap = 1;
262 wrap = 0;
267 wrap = 2; /* write gzip wrapper instead */
282 s->wrap = wrap;
330 int wrap;
337 wrap = s->wrap;
338 if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead)
342 if (wrap == 1)
344 s->wrap = 0; /* avoid computing Adler-32 in read_buf */
348 if (wrap == 0) { /* already empty otherwise */
387 s->wrap = wrap;
410 if (s->wrap < 0) {
411 s->wrap = -s->wrap; /* was made negative by deflate(..., Z_FINISH); */
413 s->status = s->wrap ? INIT_STATE : BUSY_STATE;
416 s->wrap == 2 ? crc32(0L, Z_NULL, 0) :
444 if (strm->state->wrap != 2) return Z_STREAM_ERROR;
582 switch (s->wrap) {
690 if (s->wrap == 2) {
948 if (s->wrap <= 0) return Z_STREAM_END;
952 if (s->wrap == 2) {
972 if (s->wrap > 0) s->wrap = -s->wrap; /* write the trailer only once! */
1087 if (strm->state->wrap == 1) {
1091 else if (strm->state->wrap == 2) {