Method: Rex::MachParsey::Mach.new_from_file
- Defined in:
- lib/rex/machparsey/mach.rb
.new_from_file(filename, disk_backed = false) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/rex/machparsey/mach.rb', line 61 def self.new_from_file(filename, disk_backed = false) file = ::File.open(filename, "rb") if disk_backed return self.new(ImageSource::Disk.new(file)) else obj = new_from_string(file.read) file.close return obj end end |