Class: MachO::LoadCommands::PreboundDylibCommand

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

Overview

A load command used to indicate dynamic libraries used in prebinding. Corresponds to LC_PREBOUND_DYLIB.

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

#linked_modulesInteger

Returns a bit vector of linked modules.

Returns:

  • (Integer)

    a bit vector of linked modules



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

field :linked_modules, :uint32

#nameLCStr

Returns the library's path name as an LCStr.

Returns:

  • (LCStr)

    the library's path name as an LCStr



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

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

#nmodulesInteger

Returns the number of modules in the library.

Returns:

  • (Integer)

    the number of modules in the library



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

field :nmodules, :uint32

#to_hHash

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

Returns:



597
598
599
600
601
602
603
# File 'lib/macho/load_commands.rb', line 597

def to_h
  {
    "name" => name.to_h,
    "nmodules" => nmodules,
    "linked_modules" => linked_modules,
  }.merge super
end