Class: PEdump::EFI_TE_IMAGE_HEADER

Inherits:
Object
  • Object
show all
Defined in:
lib/pedump/te.rb

Constant Summary collapse

REAL_SIZE =
SIZE + EFI_IMAGE_DATA_DIRECTORY::SIZE * 2

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#sectionsObject

Returns the value of attribute sections.



27
28
29
# File 'lib/pedump/te.rb', line 27

def sections
  @sections
end

Class Method Details

.read(io, args = {}) ⇒ Object



29
30
31
32
33
34
35
36
# File 'lib/pedump/te.rb', line 29

def self.read io, args = {}
  super(io).tap do |te|
    te.DataDirectory = 2.times.map do
      EFI_IMAGE_DATA_DIRECTORY.read(io)
    end
    te.sections = PE.read_sections(io, te.NumberOfSections, args)
  end
end