module BinData::IO::Common::SeekableStream

def with_readahead

method completes.
All io calls in +block+ are rolled back after this
def with_readahead
  mark = @raw_io.pos
  begin
    yield
  ensure
    @raw_io.seek(mark, ::IO::SEEK_SET)
  end
end