Lines Matching defs:strm
40 z_stream strm;
45 strm.zalloc = Z_NULL;
46 strm.zfree = Z_NULL;
47 strm.opaque = Z_NULL;
48 ret = deflateInit(&strm, level);
54 strm.avail_in = fread(in, 1, CHUNK, source);
56 (void)deflateEnd(&strm);
60 strm.next_in = in;
65 strm.avail_out = CHUNK;
66 strm.next_out = out;
67 ret = deflate(&strm, flush); /* no bad return value */
69 have = CHUNK - strm.avail_out;
71 (void)deflateEnd(&strm);
74 } while (strm.avail_out == 0);
75 assert(strm.avail_in == 0); /* all input will be used */
82 (void)deflateEnd(&strm);
96 z_stream strm;
101 strm.zalloc = Z_NULL;
102 strm.zfree = Z_NULL;
103 strm.opaque = Z_NULL;
104 strm.avail_in = 0;
105 strm.next_in = Z_NULL;
106 ret = inflateInit(&strm);
112 strm.avail_in = fread(in, 1, CHUNK, source);
114 (void)inflateEnd(&strm);
117 if (strm.avail_in == 0)
119 strm.next_in = in;
123 strm.avail_out = CHUNK;
124 strm.next_out = out;
125 ret = inflate(&strm, Z_NO_FLUSH);
132 (void)inflateEnd(&strm);
135 have = CHUNK - strm.avail_out;
137 (void)inflateEnd(&strm);
140 } while (strm.avail_out == 0);
146 (void)inflateEnd(&strm);