Lines Matching refs:in_pos

110 	size_t in_pos;  member
381 while (*left > 0 && b->in_pos < b->in_size in dict_uncompressed()
383 copy_size = min(b->in_size - b->in_pos, in dict_uncompressed()
392 memcpy(dict->buf + dict->pos, b->in + b->in_pos, copy_size); in dict_uncompressed()
402 memcpy(b->out + b->out_pos, b->in + b->in_pos, in dict_uncompressed()
409 b->in_pos += copy_size; in dict_uncompressed()
454 if (b->in_pos == b->in_size) in rc_read_init()
457 rc->code = (rc->code << 8) + b->in[b->in_pos++]; in rc_read_init()
467 return rc->in_pos > rc->in_limit; in rc_limit_exceeded()
484 rc->code = (rc->code << RC_SHIFT_BITS) + rc->in[rc->in_pos++]; in rc_normalize()
853 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
861 memcpy(s->temp.buf + s->temp.size, b->in + b->in_pos, tmp); in lzma2_lzma()
870 b->in_pos += tmp; in lzma2_lzma()
877 s->rc.in_pos = 0; in lzma2_lzma()
879 if (!lzma_main(s) || s->rc.in_pos > s->temp.size + tmp) in lzma2_lzma()
882 s->lzma2.compressed -= s->rc.in_pos; in lzma2_lzma()
884 if (s->rc.in_pos < s->temp.size) { in lzma2_lzma()
885 s->temp.size -= s->rc.in_pos; in lzma2_lzma()
886 memmove(s->temp.buf, s->temp.buf + s->rc.in_pos, in lzma2_lzma()
891 b->in_pos += s->rc.in_pos - s->temp.size; in lzma2_lzma()
895 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
898 s->rc.in_pos = b->in_pos; in lzma2_lzma()
901 s->rc.in_limit = b->in_pos + s->lzma2.compressed; in lzma2_lzma()
908 in_avail = s->rc.in_pos - b->in_pos; in lzma2_lzma()
913 b->in_pos = s->rc.in_pos; in lzma2_lzma()
916 in_avail = b->in_size - b->in_pos; in lzma2_lzma()
921 memcpy(s->temp.buf, b->in + b->in_pos, in_avail); in lzma2_lzma()
923 b->in_pos += in_avail; in lzma2_lzma()
938 while (b->in_pos < b->in_size || s->lzma2.sequence == SEQ_LZMA_RUN) { in xz_dec_lzma2_run()
972 tmp = b->in[b->in_pos++]; in xz_dec_lzma2_run()
1018 += (uint32_t)b->in[b->in_pos++] << 8; in xz_dec_lzma2_run()
1024 += (uint32_t)b->in[b->in_pos++] + 1; in xz_dec_lzma2_run()
1030 = (uint32_t)b->in[b->in_pos++] << 8; in xz_dec_lzma2_run()
1036 += (uint32_t)b->in[b->in_pos++] + 1; in xz_dec_lzma2_run()
1041 if (!lzma_props(s, b->in[b->in_pos++])) in xz_dec_lzma2_run()
1082 || (b->in_pos == b->in_size in xz_dec_lzma2_run()