Class: MachO::RoutinesCommand64

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command containing the address of the dynamic shared library initialization routine and an index into the module table for the module that defines the routine. Corresponds to LC_ROUTINES_64.

Constant Summary collapse

FORMAT =
"VVQQQQQQQQ"
SIZEOF =
72

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(raw_data, offset, cmd, cmdsize, init_address, init_module, reserved1, reserved2, reserved3, reserved4, reserved5, reserved6) ⇒ RoutinesCommand64

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 RoutinesCommand64.



646
647
648
649
650
651
652
653
654
655
656
657
658
# File 'lib/macho/load_commands.rb', line 646

def initialize(raw_data, offset, cmd, cmdsize, init_address, init_module,
    reserved1, reserved2, reserved3, reserved4, reserved5,
    reserved6)
  super(raw_data, offset, cmd, cmdsize)
  @init_address = init_address
  @init_module = init_module
  @reserved1 = reserved1
  @reserved2 = reserved2
  @reserved3 = reserved3
  @reserved4 = reserved4
  @reserved5 = reserved5
  @reserved6 = reserved6
end

Instance Attribute Details

#init_addressFixnum (readonly)



619
620
621
# File 'lib/macho/load_commands.rb', line 619

def init_address
  @init_address
end

#init_moduleFixnum (readonly)



622
623
624
# File 'lib/macho/load_commands.rb', line 622

def init_module
  @init_module
end

#reserved1void (readonly)



625
626
627
# File 'lib/macho/load_commands.rb', line 625

def reserved1
  @reserved1
end

#reserved2void (readonly)



628
629
630
# File 'lib/macho/load_commands.rb', line 628

def reserved2
  @reserved2
end

#reserved3void (readonly)



631
632
633
# File 'lib/macho/load_commands.rb', line 631

def reserved3
  @reserved3
end

#reserved4void (readonly)



634
635
636
# File 'lib/macho/load_commands.rb', line 634

def reserved4
  @reserved4
end

#reserved5void (readonly)



637
638
639
# File 'lib/macho/load_commands.rb', line 637

def reserved5
  @reserved5
end

#reserved6void (readonly)



640
641
642
# File 'lib/macho/load_commands.rb', line 640

def reserved6
  @reserved6
end