Lines Matching refs:buf
128 uint8_t buf[1024]; member
162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); 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 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()
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()
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()
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()
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()
533 ret = xz_dec_lzma2_reset(s->lzma2, s->temp.buf[s->temp.pos++]); in dec_block_header()
539 if (s->temp.buf[s->temp.pos++] != 0x00) in dec_block_header()