Lines Matching refs:temp
140 } temp; member
171 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp()
173 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp()
175 s->temp.pos += copy_size; in fill_temp()
177 if (s->temp.pos == s->temp.size) { in fill_temp()
178 s->temp.pos = 0; in fill_temp()
409 if (!memeq(s->temp.buf, HEADER_MAGIC, HEADER_MAGIC_SIZE)) in dec_stream_header()
412 if (xz_crc32(s->temp.buf + HEADER_MAGIC_SIZE, 2, 0) in dec_stream_header()
413 != get_le32(s->temp.buf + HEADER_MAGIC_SIZE + 2)) in dec_stream_header()
416 if (s->temp.buf[HEADER_MAGIC_SIZE] != 0) in dec_stream_header()
426 s->check_type = s->temp.buf[HEADER_MAGIC_SIZE + 1]; in dec_stream_header()
445 if (!memeq(s->temp.buf + 10, FOOTER_MAGIC, FOOTER_MAGIC_SIZE)) in dec_stream_footer()
448 if (xz_crc32(s->temp.buf + 4, 6, 0) != get_le32(s->temp.buf)) in dec_stream_footer()
456 if ((s->index.size >> 2) != get_le32(s->temp.buf + 4)) in dec_stream_footer()
459 if (s->temp.buf[8] != 0 || s->temp.buf[9] != s->check_type) in dec_stream_footer()
478 s->temp.size -= 4; in dec_block_header()
479 if (xz_crc32(s->temp.buf, s->temp.size, 0) in dec_block_header()
480 != get_le32(s->temp.buf + s->temp.size)) in dec_block_header()
483 s->temp.pos = 2; in dec_block_header()
490 if (s->temp.buf[1] & 0x3E) in dec_block_header()
492 if (s->temp.buf[1] & 0x3F) in dec_block_header()
497 if (s->temp.buf[1] & 0x40) { in dec_block_header()
498 if (dec_vli(s, s->temp.buf, &s->temp.pos, s->temp.size) in dec_block_header()
508 if (s->temp.buf[1] & 0x80) { in dec_block_header()
509 if (dec_vli(s, s->temp.buf, &s->temp.pos, s->temp.size) in dec_block_header()
520 s->bcj_active = s->temp.buf[1] & 0x01; in dec_block_header()
522 if (s->temp.size - s->temp.pos < 2) in dec_block_header()
525 ret = xz_dec_bcj_reset(s->bcj, s->temp.buf[s->temp.pos++]); in dec_block_header()
533 if (s->temp.buf[s->temp.pos++] != 0x00) in dec_block_header()
539 if (s->temp.size - s->temp.pos < 2) in dec_block_header()
543 if (s->temp.buf[s->temp.pos++] != 0x21) in dec_block_header()
547 if (s->temp.buf[s->temp.pos++] != 0x01) in dec_block_header()
551 if (s->temp.size - s->temp.pos < 1) in dec_block_header()
554 ret = xz_dec_lzma2_reset(s->lzma2, s->temp.buf[s->temp.pos++]); in dec_block_header()
559 while (s->temp.pos < s->temp.size) in dec_block_header()
560 if (s->temp.buf[s->temp.pos++] != 0x00) in dec_block_header()
563 s->temp.pos = 0; in dec_block_header()
626 s->temp.size = s->block_header.size; in dec_main()
627 s->temp.pos = 0; in dec_main()
721 s->temp.size = STREAM_HEADER_SIZE; in dec_main()
834 s->temp.pos = 0; in xz_dec_reset()
835 s->temp.size = STREAM_HEADER_SIZE; in xz_dec_reset()