Searched refs:strm (Results 1 – 4 of 4) sorted by relevance
88 void BZ2_bzCompressInit(bz_stream *strm, int blockSize100k) in BZ2_bzCompressInit() argument94 s->strm = strm; in BZ2_bzCompressInit()110 strm->state = s; in BZ2_bzCompressInit()112 strm->total_out = 0; in BZ2_bzCompressInit()197 if (s->strm->avail_in == 0) break; in copy_input_until_stop()201 ADD_CHAR_TO_BLOCK(s, (uint32_t)(*(uint8_t*)(s->strm->next_in))); in copy_input_until_stop()202 s->strm->next_in++; in copy_input_until_stop()203 s->strm->avail_in--; in copy_input_until_stop()212 if (s->strm->avail_in == 0) break; in copy_input_until_stop()218 ADD_CHAR_TO_BLOCK(s, *(uint8_t*)(s->strm->next_in)); in copy_input_until_stop()[all …]
57 static void BZ2_bzCompressInit(bz_stream *strm, int blockSize100k);58 static int BZ2_bzCompress(bz_stream *strm, int action);60 static void BZ2_bzCompressEnd(bz_stream *strm);
119 bz_stream *strm; member
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[all …]