Home | History | Annotate | Download | only in applypatch

Lines Matching refs:strm

140             z_stream strm;
141 strm.zalloc = Z_NULL;
142 strm.zfree = Z_NULL;
143 strm.opaque = Z_NULL;
144 strm.avail_in = src_len;
145 strm.next_in = (unsigned char*)(old_data + src_start);
146 strm.avail_out = expanded_len;
147 strm.next_out = expanded_source;
150 ret = inflateInit2(&strm, -15);
158 ret = inflate(&strm, Z_SYNC_FLUSH);
165 if (strm.avail_out != bonus_size) {
166 printf("source inflation short by %d bytes\n", strm.avail_out-bonus_size);
169 inflateEnd(&strm);
202 strm.zalloc = Z_NULL;
203 strm.zfree = Z_NULL;
204 strm.opaque = Z_NULL;
205 strm.avail_in = uncompressed_target_size;
206 strm.next_in = uncompressed_target_data;
207 ret = deflateInit2(&strm, level, method, windowBits, memLevel, strategy);
209 strm.avail_out = temp_size;
210 strm.next_out = temp_data;
211 ret = deflate(&strm, Z_FINISH);
212 ssize_t have = temp_size - strm.avail_out;
221 deflateEnd(&strm);