Class: MachO::LoadCommands::TargetTripleCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command containing the target triple used when compiling the binary. Corresponds to LC_TARGET_TRIPLE.

Instance Method Summary collapse

Methods inherited from LoadCommand

#cmd, #cmdsize, create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type, #view

Methods inherited from MachOStructure

bytesize, format, #initialize, new_from_bin

Constructor Details

This class inherits a constructor from MachO::MachOStructure

Instance Method Details

#to_hHash

Returns a hash representation of this MachO::LoadCommands::TargetTripleCommand.

Returns:



1069
1070
1071
1072
1073
# File 'lib/macho/load_commands.rb', line 1069

def to_h
  {
    "triple" => triple.to_h,
  }.merge super
end

#tripleLCStr

Returns the target triple used when compiling the binary.

Returns:

  • (LCStr)

    the target triple used when compiling the binary



1066
# File 'lib/macho/load_commands.rb', line 1066

field :triple, :lcstr, :to_s => true