class PDF::Reader::Buffer

def initialize(io, opts = {})


content stream. Defaults to false
:content_stream - set to true if buffer will be tokenising a
:seek - a byte offset to seek to before starting to tokenise

options:

io - an IO stream (usually a StringIO) with the raw data to tokenise

Params:

Creates a new buffer.
def initialize(io, opts = {})
  @io = io
  @tokens = []
  @in_content_stream = opts[:content_stream]
  @io.seek(opts[:seek]) if opts[:seek]
  @pos = @io.pos
end