Method: Rex::MachParsey::Fat.new_from_file
- Defined in:
- lib/rex/machparsey/mach.rb
.new_from_file(filename, disk_backed = false) ⇒ Object
163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/rex/machparsey/mach.rb', line 163 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 |