Lines Matching refs:bzf_bzstream
59 bz_stream bzf_bzstream;
90 req = BZ_BUFSIZE - bzf->bzf_bzstream.avail_in;
100 result = read(bzf->bzf_rawfd, bzf->bzf_buf + bzf->bzf_bzstream.avail_in, req);
101 bzf->bzf_bzstream.next_in = bzf->bzf_buf;
103 bzf->bzf_bzstream.avail_in += result;
116 if ((bzf->bzf_bzstream.avail_in == 0) && (bzf_fill(bzf) == -1))
118 bzf->bzf_bzstream.avail_in--;
119 return(*(bzf->bzf_bzstream.next_in)++);
143 bzf->bzf_bzstream.next_in -= 4;
144 bzf->bzf_bzstream.avail_in += 4;
206 if ((error = BZ2_bzDecompressInit(&(bzf->bzf_bzstream), 0, 1)) != BZ_OK) {
223 BZ2_bzDecompressEnd(&(bzf->bzf_bzstream));
235 bzf->bzf_bzstream.next_out = buf; /* where and how much */
236 bzf->bzf_bzstream.avail_out = size;
238 while (bzf->bzf_bzstream.avail_out && bzf->bzf_endseen == 0) {
239 if ((bzf->bzf_bzstream.avail_in == 0) && (bzf_fill(bzf) == -1)) {
243 if (bzf->bzf_bzstream.avail_in == 0) { /* oops, unexpected EOF */
245 if (bzf->bzf_bzstream.avail_out == size)
250 error = BZ2_bzDecompress(&bzf->bzf_bzstream); /* decompression pass */
261 *resid = bzf->bzf_bzstream.avail_out;
287 if (BZ2_bzDecompressInit(&(bzf_tmp->bzf_bzstream), 0, 1) != BZ_OK) {
294 BZ2_bzDecompressEnd(&(bzf_tmp->bzf_bzstream));
300 BZ2_bzDecompressEnd(&(bzf->bzf_bzstream));
321 target = offset + bzf->bzf_bzstream.total_out_lo32;
331 if (target < bzf->bzf_bzstream.total_out_lo32 && bzf_rewind(f) != 0) {
340 while (target > bzf->bzf_bzstream.total_out_lo32) {
342 target - bzf->bzf_bzstream.total_out_lo32), NULL);
347 return(bzf->bzf_bzstream.total_out_lo32);