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.
710 711 712 713 714 715 716 717 718 |
# File 'lib/rex/peparsey/pebase.rb', line 710 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.
708 709 710 |
# File 'lib/rex/peparsey/pebase.rb', line 708 def code @code end |
#file ⇒ Object
Returns the value of attribute file.
708 709 710 |
# File 'lib/rex/peparsey/pebase.rb', line 708 def file @file end |
#lang ⇒ Object
Returns the value of attribute lang.
708 709 710 |
# File 'lib/rex/peparsey/pebase.rb', line 708 def lang @lang end |
#path ⇒ Object
Returns the value of attribute path.
708 709 710 |
# File 'lib/rex/peparsey/pebase.rb', line 708 def path @path end |
#pe ⇒ Object
Returns the value of attribute pe.
708 709 710 |
# File 'lib/rex/peparsey/pebase.rb', line 708 def pe @pe end |
#rva ⇒ Object
Returns the value of attribute rva.
708 709 710 |
# File 'lib/rex/peparsey/pebase.rb', line 708 def rva @rva end |
#size ⇒ Object
Returns the value of attribute size.
708 709 710 |
# File 'lib/rex/peparsey/pebase.rb', line 708 def size @size end |
Instance Method Details
#data ⇒ Object
720 721 722 |
# File 'lib/rex/peparsey/pebase.rb', line 720 def data pe._isource.read(pe.rva_to_file_offset(rva), size) end |