Class: MachO::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 Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s

Methods inherited from MachOStructure

bytesize, new_from_bin

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_modulesFixnum (readonly)

Returns a bit vector of linked modules.

Returns:

  • (Fixnum)

    a bit vector of linked modules



519
520
521
# File 'lib/macho/load_commands.rb', line 519

def linked_modules
  @linked_modules
end

#nameFixnum (readonly)

Returns the library’s path name (lc_str).

Returns:

  • (Fixnum)

    the library’s path name (lc_str)



513
514
515
# File 'lib/macho/load_commands.rb', line 513

def name
  @name
end

#nmodulesFixnum (readonly)

Returns the number of modules in the library.

Returns:

  • (Fixnum)

    the number of modules in the library



516
517
518
# File 'lib/macho/load_commands.rb', line 516

def nmodules
  @nmodules
end