Class: MachO::LinkeditDataCommand

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

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, dataoff, datasize) ⇒ LinkeditDataCommand

Returns a new instance of LinkeditDataCommand.



495
496
497
498
499
# File 'lib/macho/load_commands.rb', line 495

def initialize(offset, cmd, cmdsize, dataoff, datasize)
  super(offset, cmd, cmdsize)
  @dataoff = dataoff
  @datasize = datasize
end

Instance Attribute Details

#dataoffObject (readonly)

Returns the value of attribute dataoff.



490
491
492
# File 'lib/macho/load_commands.rb', line 490

def dataoff
  @dataoff
end

#datasizeObject (readonly)

Returns the value of attribute datasize.



490
491
492
# File 'lib/macho/load_commands.rb', line 490

def datasize
  @datasize
end