Lines Matching refs:temp
129 } temp; member
160 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp()
162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp()
164 s->temp.pos += copy_size; in fill_temp()
166 if (s->temp.pos == s->temp.size) { in fill_temp()
167 s->temp.pos = 0; in fill_temp()
389 if (!memeq(s->temp.buf, HEADER_MAGIC, HEADER_MAGIC_SIZE)) in dec_stream_header()
392 if (xz_crc32(s->temp.buf + HEADER_MAGIC_SIZE, 2, 0) in dec_stream_header()
393 != get_le32(s->temp.buf + HEADER_MAGIC_SIZE + 2)) in dec_stream_header()
396 if (s->temp.buf[HEADER_MAGIC_SIZE] != 0) in dec_stream_header()
405 if (s->temp.buf[HEADER_MAGIC_SIZE + 1] > XZ_CHECK_MAX) in dec_stream_header()
408 s->check_type = s->temp.buf[HEADER_MAGIC_SIZE + 1]; in dec_stream_header()
424 if (!memeq(s->temp.buf + 10, FOOTER_MAGIC, FOOTER_MAGIC_SIZE)) in dec_stream_footer()
427 if (xz_crc32(s->temp.buf + 4, 6, 0) != get_le32(s->temp.buf)) in dec_stream_footer()
435 if ((s->index.size >> 2) != get_le32(s->temp.buf + 4)) in dec_stream_footer()
438 if (s->temp.buf[8] != 0 || s->temp.buf[9] != s->check_type) in dec_stream_footer()
457 s->temp.size -= 4; in dec_block_header()
458 if (xz_crc32(s->temp.buf, s->temp.size, 0) in dec_block_header()
459 != get_le32(s->temp.buf + s->temp.size)) in dec_block_header()
462 s->temp.pos = 2; in dec_block_header()
469 if (s->temp.buf[1] & 0x3E) in dec_block_header()
471 if (s->temp.buf[1] & 0x3F) in dec_block_header()
476 if (s->temp.buf[1] & 0x40) { in dec_block_header()
477 if (dec_vli(s, s->temp.buf, &s->temp.pos, s->temp.size) in dec_block_header()
487 if (s->temp.buf[1] & 0x80) { in dec_block_header()
488 if (dec_vli(s, s->temp.buf, &s->temp.pos, s->temp.size) in dec_block_header()
499 s->bcj_active = s->temp.buf[1] & 0x01; in dec_block_header()
501 if (s->temp.size - s->temp.pos < 2) in dec_block_header()
504 ret = xz_dec_bcj_reset(s->bcj, s->temp.buf[s->temp.pos++]); in dec_block_header()
512 if (s->temp.buf[s->temp.pos++] != 0x00) in dec_block_header()
518 if (s->temp.size - s->temp.pos < 2) in dec_block_header()
522 if (s->temp.buf[s->temp.pos++] != 0x21) in dec_block_header()
526 if (s->temp.buf[s->temp.pos++] != 0x01) in dec_block_header()
530 if (s->temp.size - s->temp.pos < 1) in dec_block_header()
533 ret = xz_dec_lzma2_reset(s->lzma2, s->temp.buf[s->temp.pos++]); in dec_block_header()
538 while (s->temp.pos < s->temp.size) in dec_block_header()
539 if (s->temp.buf[s->temp.pos++] != 0x00) in dec_block_header()
542 s->temp.pos = 0; in dec_block_header()
607 s->temp.size = s->block_header.size; in dec_main()
608 s->temp.pos = 0; in dec_main()
709 s->temp.size = STREAM_HEADER_SIZE; in dec_main()
824 s->temp.pos = 0; in xz_dec_reset()
825 s->temp.size = STREAM_HEADER_SIZE; in xz_dec_reset()