Lines Matching refs:strm
75 lzma_stream strm; /* stream structure in-place (not a pointer) */ member
132 state->strm.avail_in = 0; /* no input data yet */ in xz_reset()
257 lzma_stream *strm = &(state->strm); in xz_avail() local
263 unsigned tmp = strm->avail_in; in xz_avail()
266 strm->avail_in = tmp; in xz_avail()
269 strm->avail_in = tmp; in xz_avail()
270 strm->next_in = state->in; in xz_avail()
280 state->strm.avail_in = state->zstrm.avail_in; in xz_avail_zstrm()
281 state->strm.next_in = state->zstrm.next_in; in xz_avail_zstrm()
283 state->zstrm.avail_in = (uInt) state->strm.avail_in; in xz_avail_zstrm()
284 state->zstrm.next_in = (Bytef *) state->strm.next_in; in xz_avail_zstrm()
292 lzma_stream *strm = &(state->strm); in is_format_xz() local
294 return strm->avail_in >= 6 && memcmp(state->in, "\3757zXZ", 6) == 0; in is_format_xz()
300 lzma_stream *strm = &(state->strm); in is_format_lzma() local
308 if (strm->avail_in < 13) in is_format_lzma()
355 #define NEXT() ((strm->avail_in == 0 && xz_avail(state) == -1) ? -1 : \
356 (strm->avail_in == 0 ? -1 : \
357 (strm->avail_in--, *(strm->next_in)++)))
359 #define NEXTZ() ((strm->avail_in == 0 && xz_avail_zstrm(state) == -1) ? -1 : \
360 (strm->avail_in == 0 ? -1 : \
361 (strm->avail_in--, *(strm->next_in)++)))
370 z_streamp strm = &(state->zstrm); in gz_next4() local
387 lzma_stream *strm = &(state->strm); in xz_head() local
408 state->strm = init; in xz_head()
409 state->strm.avail_in = 0; in xz_head()
410 state->strm.next_in = NULL; in xz_head()
411 if (lzma_auto_decoder(&state->strm, 100000000, 0) != LZMA_OK) { in xz_head()
439 if (strm->avail_in == 0) { in xz_head()
442 if (strm->avail_in == 0) in xz_head()
454 if (strm->next_in[0] == 31) { in xz_head()
455 strm->avail_in--; in xz_head()
456 strm->next_in++; in xz_head()
457 if (strm->avail_in == 0 && xz_avail(state) == -1) in xz_head()
459 if (strm->avail_in && strm->next_in[0] == 139) { in xz_head()
461 strm->avail_in--; in xz_head()
462 strm->next_in++; in xz_head()
519 if (strm->avail_in) { in xz_head()
520 memcpy(state->next + state->have, strm->next_in, strm->avail_in); in xz_head()
521 state->have += strm->avail_in; in xz_head()
522 strm->avail_in = 0; in xz_head()
535 lzma_stream *strm = &(state->strm); in xz_decomp() local
540 had = strm->avail_out; in xz_decomp()
543 if (strm->avail_in == 0 && xz_avail(state) == -1) in xz_decomp()
545 if (strm->avail_in == 0) { in xz_decomp()
555 state->zstrm.avail_in = (uInt) state->strm.avail_in; in xz_decomp()
556 state->zstrm.next_in = (Bytef *) state->strm.next_in; in xz_decomp()
557 state->zstrm.avail_out = (uInt) state->strm.avail_out; in xz_decomp()
558 state->zstrm.next_out = (Bytef *) state->strm.next_out; in xz_decomp()
575 state->strm.avail_in = state->zstrm.avail_in; in xz_decomp()
576 state->strm.next_in = state->zstrm.next_in; in xz_decomp()
577 state->strm.avail_out = state->zstrm.avail_out; in xz_decomp()
578 state->strm.next_out = state->zstrm.next_out; in xz_decomp()
581 ret = lzma_code(strm, action); in xz_decomp()
599 } while (strm->avail_out && ret != LZMA_STREAM_END); in xz_decomp()
602 state->have = had - strm->avail_out; in xz_decomp()
603 state->next = strm->next_out - state->have; in xz_decomp()
624 state->strm.avail_in = 0; in xz_decomp()
625 state->strm.next_in = NULL; in xz_decomp()
626 state->strm.avail_out = 0; in xz_decomp()
627 state->strm.next_out = NULL; in xz_decomp()
630 if (strm->avail_in != 0 || !state->eof) { in xz_decomp()
645 lzma_stream *strm = &(state->strm); in xz_make() local
659 strm->avail_out = state->size << 1; in xz_make()
660 strm->next_out = state->out; in xz_make()
685 else if (state->eof && state->strm.avail_in == 0) in xz_skip()
702 lzma_stream *strm; in __libxml2_xzread() local
708 strm = &(state->strm); in __libxml2_xzread()
745 else if (state->eof && strm->avail_in == 0) in __libxml2_xzread()
767 strm->avail_out = len; in __libxml2_xzread()
768 strm->next_out = buf; in __libxml2_xzread()
799 lzma_end(&(state->strm)); in __libxml2_xzclose()