Method: MachO::MachOFile#initialize_from_bin

Defined in:
lib/macho/macho_file.rb

#initialize_from_bin(bin, opts) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initializes a new MachOFile instance from a binary string with the given options.

See Also:



70
71
72
73
74
75
# File 'lib/macho/macho_file.rb', line 70

def initialize_from_bin(bin, opts)
  @filename = nil
  @options = opts
  @raw_data = bin
  populate_fields
end