Method: Rex::MachParsey::Mach#initialize

Defined in:
lib/rex/machparsey/mach.rb

#initialize(isource, offset = 0, fat = false) ⇒ Mach

Returns a new instance of Mach.



14
15
16
17
18
19
20
21
22
23
# File 'lib/rex/machparsey/mach.rb', line 14

def initialize(isource, offset = 0, fat = false)
  _parse_mach_header(isource, offset)
  if fat == true
    self.fat_offset = offset
  else
    self.fat_offset = 0
  end

  self.isource = isource
end