Class: Tassadar::MPQ::SectorArray

Inherits:
BinData::BasePrimitive
  • Object
show all
Defined in:
lib/tassadar/mpq/sector.rb

Instance Method Summary collapse

Instance Method Details

#read_and_return_value(io) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/tassadar/mpq/sector.rb', line 12

def read_and_return_value(io)
  result = []
  file_data_offset = parent.offset

  eval_parameter(:sector_offsets).each do |offset|
    raise offset.inspect
    result << Sector.new(:adjust_offset => offset + file_data_offset).read(io)
  end

  result
end