Method: Rex::PeParsey::PeBase#rva_to_file_offset

Defined in:
lib/rex/peparsey/pebase.rb

#rva_to_file_offset(rva) ⇒ Object

Raises:



1193
1194
1195
1196
1197
1198
1199
1200
# File 'lib/rex/peparsey/pebase.rb', line 1193

def rva_to_file_offset(rva)
  all_sections.each do |section|
    if section.contains_rva?(rva)
      return section.rva_to_file_offset(rva)
    end
  end
  raise PeParseyError, "No section contains RVA", caller
end