# File lib/rex/peparsey/pebase.rb, line 119 def initialize(rawdata) dos_header = IMAGE_DOS_HEADER.make_struct if !dos_header.from_s(rawdata) raise DosHeaderError, "Couldn't parse IMAGE_DOS_HEADER", caller end if dos_header.v['e_magic'] != IMAGE_DOS_SIGNATURE raise DosHeaderError, "Couldn't find DOS e_magic", caller end self.struct = dos_header end
Generated with the Darkfish Rdoc Generator 2.