Lines Matching refs:strm
126 IF_DESKTOP(long long) int bz_write(bz_stream *strm, void* rbuf, ssize_t rlen, void *wbuf) in IF_DESKTOP()
130 strm->avail_in = rlen; in IF_DESKTOP()
131 strm->next_in = rbuf; in IF_DESKTOP()
133 strm->avail_out = IOBUF_SIZE; in IF_DESKTOP()
134 strm->next_out = wbuf; in IF_DESKTOP()
136 ret = BZ2_bzCompress(strm, rlen ? BZ_RUN : BZ_FINISH); in IF_DESKTOP()
144 n = IOBUF_SIZE - strm->avail_out; in IF_DESKTOP()
157 if (rlen && strm->avail_in == 0) in IF_DESKTOP()
160 return 0 IF_DESKTOP( + strm->total_out ); in IF_DESKTOP()
170 #define strm (&bzs) in IF_DESKTOP() macro
187 BZ2_bzCompressInit(strm, level); in IF_DESKTOP()
197 total = bz_write(strm, rbuf, count, wbuf); in IF_DESKTOP()
205 BZ2_bzCompressEnd(strm); in IF_DESKTOP()