Method: Rex::PeParsey::PeBase::SectionHeader#initialize

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

#initialize(rawdata) ⇒ SectionHeader

Returns a new instance of SectionHeader.



622
623
624
625
626
627
628
629
630
# File 'lib/rex/peparsey/pebase.rb', line 622

def initialize(rawdata)
  section_header = IMAGE_SECTION_HEADER.make_struct

  if !section_header.from_s(rawdata)
    raise SectionHeaderError, "Could not parse header", caller
  end

  self.struct = section_header
end