lib/hexapdf/utils/bit_stream.rb in hexapdf-0.1.0 vs lib/hexapdf/utils/bit_stream.rb in hexapdf-0.2.0

- old
+ new

@@ -82,10 +82,10 @@ result end private - LENGTH_TO_TYPE = {4 => 'N', 2 => 'n', 1 => 'C'} # :nodoc: + LENGTH_TO_TYPE = {4 => 'N', 2 => 'n', 1 => 'C'}.freeze # :nodoc: FOUR_TO_INFINITY = 4..Float::INFINITY # :nodoc: # Fills the bit cache so that at least 16bit are available (if possible). def fill_bit_cache return unless @available_bits <= 16 && @pos != @data.size