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



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

field :count, :uint32

#to_hHash

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

Returns:



1308
1309
1310
1311
1312
# File 'lib/macho/load_commands.rb', line 1308

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