Class: MachO::PreboundDylibCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::PreboundDylibCommand
- 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 Attribute Summary collapse
-
#linked_modules ⇒ Fixnum
readonly
A bit vector of linked modules.
-
#name ⇒ Fixnum
readonly
The library’s path name (lc_str).
-
#nmodules ⇒ Fixnum
readonly
The number of modules in the library.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, name, nmodules, linked_modules) ⇒ PreboundDylibCommand
constructor
A new instance of PreboundDylibCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, name, nmodules, linked_modules) ⇒ PreboundDylibCommand
Returns a new instance of PreboundDylibCommand.
525 526 527 528 529 530 |
# File 'lib/macho/load_commands.rb', line 525 def initialize(offset, cmd, cmdsize, name, nmodules, linked_modules) super(offset, cmd, cmdsize) @name = name @nmodules = nmodules @linked_modules = linked_modules end |
Instance Attribute Details
#linked_modules ⇒ Fixnum (readonly)
Returns a bit vector of linked modules.
519 520 521 |
# File 'lib/macho/load_commands.rb', line 519 def linked_modules @linked_modules end |
#name ⇒ Fixnum (readonly)
Returns the library’s path name (lc_str).
513 514 515 |
# File 'lib/macho/load_commands.rb', line 513 def name @name end |
#nmodules ⇒ Fixnum (readonly)
Returns the number of modules in the library.
516 517 518 |
# File 'lib/macho/load_commands.rb', line 516 def nmodules @nmodules end |