Class: Rex::PeParsey::PeBase::ResourceEntry
- Inherits:
-
Object
- Object
- Rex::PeParsey::PeBase::ResourceEntry
- Defined in:
- lib/rex/peparsey/pebase.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#file ⇒ Object
Returns the value of attribute file.
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#path ⇒ Object
Returns the value of attribute path.
-
#pe ⇒ Object
Returns the value of attribute pe.
-
#rva ⇒ Object
Returns the value of attribute rva.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(pe, path, lang, code, rva, size, file) ⇒ ResourceEntry
constructor
A new instance of ResourceEntry.
Constructor Details
#initialize(pe, path, lang, code, rva, size, file) ⇒ ResourceEntry
Returns a new instance of ResourceEntry.
726 727 728 729 730 731 732 733 734 |
# File 'lib/rex/peparsey/pebase.rb', line 726 def initialize(pe, path, lang, code, rva, size, file) self.pe = pe self.path = path self.lang = lang self.code = code self.rva = rva self.size = size self.file = file.to_s end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
724 725 726 |
# File 'lib/rex/peparsey/pebase.rb', line 724 def code @code end |
#file ⇒ Object
Returns the value of attribute file.
724 725 726 |
# File 'lib/rex/peparsey/pebase.rb', line 724 def file @file end |
#lang ⇒ Object
Returns the value of attribute lang.
724 725 726 |
# File 'lib/rex/peparsey/pebase.rb', line 724 def lang @lang end |
#path ⇒ Object
Returns the value of attribute path.
724 725 726 |
# File 'lib/rex/peparsey/pebase.rb', line 724 def path @path end |
#pe ⇒ Object
Returns the value of attribute pe.
724 725 726 |
# File 'lib/rex/peparsey/pebase.rb', line 724 def pe @pe end |
#rva ⇒ Object
Returns the value of attribute rva.
724 725 726 |
# File 'lib/rex/peparsey/pebase.rb', line 724 def rva @rva end |
#size ⇒ Object
Returns the value of attribute size.
724 725 726 |
# File 'lib/rex/peparsey/pebase.rb', line 724 def size @size end |
Instance Method Details
#data ⇒ Object
736 737 738 |
# File 'lib/rex/peparsey/pebase.rb', line 736 def data pe._isource.read(pe.rva_to_file_offset(rva), size) end |