Lines Matching refs:strm
49 z_stream strm;
54 strm.zalloc = Z_NULL;
55 strm.zfree = Z_NULL;
56 strm.opaque = Z_NULL;
57 ret = deflateInit(&strm, level);
63 strm.avail_in = fread(in, 1, CHUNK, source);
65 (void)deflateEnd(&strm);
69 strm.next_in = in;
74 strm.avail_out = CHUNK;
75 strm.next_out = out;
76 ret = deflate(&strm, flush); /* no bad return value */
77 have = CHUNK - strm.avail_out;
79 (void)deflateEnd(&strm);
82 } while (strm.avail_out == 0);
88 (void)deflateEnd(&strm);
97 z_stream strm;
102 strm.zalloc = Z_NULL;
103 strm.zfree = Z_NULL;
104 strm.opaque = Z_NULL;
105 strm.avail_in = 0;
106 strm.next_in = Z_NULL;
107 ret = inflateInit(&strm);
113 strm.avail_in = fread(in, 1, CHUNK, source);
115 (void)inflateEnd(&strm);
118 if (strm.avail_in == 0)
120 strm.next_in = in;
124 strm.avail_out = CHUNK;
125 strm.next_out = out;
126 ret = inflate(&strm, Z_NO_FLUSH);
132 (void)inflateEnd(&strm);
135 } while (strm.avail_out == 0);
141 (void)inflateEnd(&strm);