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



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

field :linked_modules, :uint32

#nameLCStr

Returns the library's path name as an LCStr.

Returns:

  • (LCStr)

    the library's path name as an LCStr



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

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

#nmodulesInteger

Returns the number of modules in the library.

Returns:

  • (Integer)

    the number of modules in the library



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

field :nmodules, :uint32

#to_hHash

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

Returns:



696
697
698
699
700
701
702
# File 'lib/macho/load_commands.rb', line 696

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