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



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

field :count, :uint32

#to_hHash

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

Returns:



1329
1330
1331
1332
1333
# File 'lib/macho/load_commands.rb', line 1329

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