Method: BinData::DelayedIO#read_now!
- Defined in:
- lib/bindata/delayed_io.rb
#read_now! ⇒ Object
DelayedIO objects aren’t read when #read is called. The reading is delayed until this method is called.
121 122 123 124 125 126 127 128 |
# File 'lib/bindata/delayed_io.rb', line 121 def read_now! raise IOError.new "read from where?" unless @read_io @read_io.seekbytes(abs_offset - @read_io.offset) start_read do @type.do_read(@read_io) end end |