Class: MachO::LoadCommands::LinkerOptionCommand

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

Overview

A load command containing linker options embedded in object files. Corresponds to LC_LINKER_OPTION.

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

#countInteger

Returns the number of strings.

Returns:

  • (Integer)

    the number of strings



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

field :count, :uint32

#to_hHash

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

Returns:



1209
1210
1211
1212
1213
# File 'lib/macho/load_commands.rb', line 1209

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