Class: MachO::DylinkerCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::DylinkerCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command representing some aspect of the dynamic linker, depending on filetype. Corresponds to LC_ID_DYLINKER, LC_LOAD_DYLINKER, and LC_DYLD_ENVIRONMENT.
Constant Summary collapse
- FORMAT =
"VVV"
- SIZEOF =
12
Instance Attribute Summary collapse
-
#name ⇒ MachO::LoadCommand::LCStr
readonly
The dynamic linker's path name as an LCStr.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(raw_data, offset, cmd, cmdsize, name) ⇒ DylinkerCommand
constructor
private
A new instance of DylinkerCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(raw_data, offset, cmd, cmdsize, name) ⇒ DylinkerCommand
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 DylinkerCommand.
395 396 397 398 |
# File 'lib/macho/load_commands.rb', line 395 def initialize(raw_data, offset, cmd, cmdsize, name) super(raw_data, offset, cmd, cmdsize) @name = LCStr.new(raw_data, self, name) end |
Instance Attribute Details
#name ⇒ MachO::LoadCommand::LCStr (readonly)
Returns the dynamic linker's path name as an LCStr.
389 390 391 |
# File 'lib/macho/load_commands.rb', line 389 def name @name end |