class PEdump::TE

Constants

DataDirectory
REAL_SIZE

Attributes

sections[RW]

Public Class Methods

read(io, args = {}) click to toggle source
Calls superclass method
# 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