Home | History | Annotate | Download | only in examples

Lines Matching full:strm

269     z_stream strm;
296 strm.zalloc = Z_NULL;
297 strm.zfree = Z_NULL;
298 strm.opaque = Z_NULL;
299 if (deflateInit2(&strm, Z_BEST_COMPRESSION, Z_DEFLATED, -15, 8,
305 strm.next_in = in;
306 strm.avail_out = max;
307 strm.next_out = out;
309 if (strm.next_in[0] != 0)
311 strm.avail_in = strm.next_in[1] + (strm.next_in[2] << 8);
312 strm.next_in += 5;
314 if (strm.avail_in != 0) {
315 if (len < strm.avail_in)
317 len -= strm.avail_in;
318 (void)deflate(&strm, Z_NO_FLUSH);
319 if (strm.avail_in != 0 || strm.avail_out == 0)
323 (void)deflate(&strm, Z_SYNC_FLUSH);
324 (void)deflateEnd(&strm);
326 if (len != 0 || strm.avail_out == 0) {
333 len = max - strm.avail_out;