Lines Matching refs:zs
15 bz_stream zs;
28 (void)BZ2_bzCompressEnd(&zstream->zs);
62 bz_stream *zs = &zstream->zs;
67 zs->next_in = (void *)data;
68 zs->avail_in = size;
69 while (zs->avail_in > 0) {
70 if (zs->avail_out == 0) {
73 zs->next_out = zstream->outbuf;
74 zs->avail_out = sizeof(zstream->outbuf);
85 switch (BZ2_bzCompress(zs, BZ_RUN)) {
92 size -= zs->avail_in;
100 bz_stream *zs = &zstream->zs;
105 i_assert(zs->avail_in == 0);
117 len = sizeof(zstream->outbuf) - zs->avail_out;
119 zs->next_out = zstream->outbuf;
120 zs->avail_out = sizeof(zstream->outbuf);
129 ret = BZ2_bzCompress(zs, BZ_FINISH);
139 } while (zs->avail_out != sizeof(zstream->outbuf));
182 zstream->zs.avail_in = 0;
198 ret = BZ2_bzCompressInit(&zstream->zs, level, 0, 0);
213 zstream->zs.next_out = zstream->outbuf;
214 zstream->zs.avail_out = sizeof(zstream->outbuf);