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.
Constant Summary collapse
- FORMAT =
"VVVVV"- SIZEOF =
20
Instance Attribute Summary collapse
-
#linked_modules ⇒ Fixnum
readonly
A bit vector of linked modules.
-
#name ⇒ MachO::LoadCommand::LCStr
readonly
The library's path name as an LCStr.
-
#nmodules ⇒ Fixnum
readonly
The number of modules in the library.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(raw_data, offset, cmd, cmdsize, name, nmodules, linked_modules) ⇒ PreboundDylibCommand
constructor
private
A new instance of PreboundDylibCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(raw_data, offset, cmd, cmdsize, name, nmodules, linked_modules) ⇒ PreboundDylibCommand
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of PreboundDylibCommand.
553 554 555 556 557 558 |
# File 'lib/macho/load_commands.rb', line 553 def initialize(raw_data, offset, cmd, cmdsize, name, nmodules, linked_modules) super(raw_data, offset, cmd, cmdsize) @name = LCStr.new(raw_data, self, name) @nmodules = nmodules @linked_modules = linked_modules end |
Instance Attribute Details
#linked_modules ⇒ Fixnum (readonly)
Returns a bit vector of linked modules.
547 548 549 |
# File 'lib/macho/load_commands.rb', line 547 def linked_modules @linked_modules end |
#name ⇒ MachO::LoadCommand::LCStr (readonly)
Returns the library's path name as an LCStr.
541 542 543 |
# File 'lib/macho/load_commands.rb', line 541 def name @name end |
#nmodules ⇒ Fixnum (readonly)
Returns the number of modules in the library.
544 545 546 |
# File 'lib/macho/load_commands.rb', line 544 def nmodules @nmodules end |