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_modules ⇒ Integer

Returns a bit vector of linked modules.

Returns:

  • (Integer) —

    a bit vector of linked modules



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

field :linked_modules, :uint32

#name ⇒ LCStr

Returns the library's path name as an LCStr.

Returns:

  • (LCStr) —

    the library's path name as an LCStr



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

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

#nmodules ⇒ Integer

Returns the number of modules in the library.

Returns:

  • (Integer) —

    the number of modules in the library



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

field :nmodules, :uint32

#to_h ⇒ Hash

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

Returns:



710
711
712
713
714
715
716
# File 'lib/macho/load_commands.rb', line 710

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