roffset
if (clear_flg > 0 || roffset >= size || free_ent > maxcode) {
roffset = 0;
r_off = roffset;
roffset += n_bits;