Lines Matching defs:strm
32 static struct z_stream_s strm;
34 strm.zalloc = NULL;
35 strm.zfree = NULL;
36 strm.opaque = NULL;
37 deflateInit (&strm, Z_DEFAULT_COMPRESSION);
38 return &strm;
45 compress_data (struct z_stream_s *strm, const char **next_in,
51 strm->next_in = (Bytef *) (*next_in);
52 strm->avail_in = *avail_in;
53 strm->next_out = (Bytef *) (*next_out);
54 strm->avail_out = *avail_out;
56 x = deflate (strm, Z_NO_FLUSH);
60 out_size = *avail_out - strm->avail_out;
61 *next_in = (char *) (strm->next_in);
62 *avail_in = strm->avail_in;
63 *next_out = (char *) (strm->next_out);
64 *avail_out = strm->avail_out;
74 compress_finish (struct z_stream_s *strm, char **next_out,
79 strm->avail_in = 0;
80 strm->next_out = (Bytef *) (*next_out);
81 strm->avail_out = *avail_out;
83 x = deflate (strm, Z_FINISH);
85 *out_size = *avail_out - strm->avail_out;
86 *next_out = (char *) (strm->next_out);
87 *avail_out = strm->avail_out;
91 deflateEnd (strm);
94 if (strm->avail_out != 0)