module BinData::IO::Common::SeekableStream
def with_readahead
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
def with_readahead mark = @raw_io.pos begin yield ensure @raw_io.seek(mark, ::IO::SEEK_SET) end end