Lines Matching refs:dict_size
282 off_t pos, ppos, spos, dict_size; member
301 lz->wrapped = lz->pos >= lz->dict_size; in lz_flush()
321 lz_create(struct lz_decoder *lz, int fin, int fdout, int dict_size) in lz_create() argument
335 lz->dict_size = dict_size; in lz_create()
338 lz->obuf = malloc(dict_size); in lz_create()
359 return lz->obuf[lz->dict_size + diff]; in lz_peek()
368 if (lz->dict_size == lz->pos) in lz_put()
518 if (rep[0] >= lz->dict_size || in lz_decode_member()
540 lz_decode(int fin, int fdout, unsigned dict_size, off_t *insize) in lz_decode() argument
545 if (lz_create(&lz, fin, fdout, dict_size) == -1) in lz_decode()
604 unsigned dict_size = 1 << (c & 0x1f); in lz_get_dict_size() local
605 dict_size -= (dict_size >> 2) * ( (c >> 5) & 0x7); in lz_get_dict_size()
606 if (dict_size < MIN_DICTIONARY_SIZE || dict_size > MAX_DICTIONARY_SIZE) in lz_get_dict_size()
608 return dict_size; in lz_get_dict_size()
637 unsigned dict_size = lz_get_dict_size(header[5]); in unlz() local
638 if (dict_size == 0) in unlz()
641 return lz_decode(fin, fout, dict_size, bytes_in); in unlz()