Class: MachO::DylinkerCommand

Inherits:
LoadCommand show all
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

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s, #type

Methods inherited from MachOStructure

bytesize, new_from_bin

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

#nameMachO::LoadCommand::LCStr (readonly)

Returns the dynamic linker's path name as an LCStr.

Returns:



389
390
391
# File 'lib/macho/load_commands.rb', line 389

def name
  @name
end