class BinData::IO

def reset_read_bits

next byte boundary.
Discards any read bits so the stream becomes aligned at the
def reset_read_bits
  raise "Internal state error nbits = #{@rnbits}" if @rnbits >= 8
  @rnbits = 0
  @rval   = 0
end