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