Method: HexaPDF::Utils::BitStreamReader#append_data

Defined in:
lib/hexapdf/utils/bit_stream.rb

#append_data(str) ⇒ Object Also known as: <<

Appends some data to the string from where bits are read.



58
59
60
61
62
63
# File 'lib/hexapdf/utils/bit_stream.rb', line 58

def append_data(str)
  @data.slice!(0, @pos)
  @data << str
  @pos = 0
  self
end