class PDF::Reader::Buffer

def save_pos


moves the cursor, we can then restore it.
save the current position of the source IO stream. If someone else (like another buffer)
def save_pos
  @pos = @io.pos
end