Method: MachO::FatFile.new_from_bin

Defined in:
lib/macho/fat_file.rb

.new_from_bin(bin, **opts) ⇒ FatFile

Note:

see MachOFile#initialize for currently valid options

Creates a new FatFile instance from a binary string.

Parameters:

  • bin (String)

    a binary string containing raw Mach-O data

  • opts (Hash)

    options to control the parser with

Returns:



82
83
84
85
86
87
# File 'lib/macho/fat_file.rb', line 82

def self.new_from_bin(bin, **opts)
  instance = allocate
  instance.initialize_from_bin(bin, opts)

  instance
end