Class: MachO::LinkeditDataCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LinkeditDataCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command representing the offsets and sizes of a blob of data in the __LINKEDIT segment. Corresponds to LC_CODE_SIGNATURE, LC_SEGMENT_SPLIT_INFO, LC_FUNCTION_STARTS, LC_DATA_IN_CODE, LC_DYLIB_CODE_SIGN_DRS, and LC_LINKER_OPTIMIZATION_HINT.
Instance Attribute Summary collapse
-
#dataoff ⇒ Fixnum
readonly
Offset to the data in the __LINKEDIT segment.
-
#datasize ⇒ Fixnum
readonly
Size of the data in the __LINKEDIT segment.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, dataoff, datasize) ⇒ LinkeditDataCommand
constructor
A new instance of LinkeditDataCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, dataoff, datasize) ⇒ LinkeditDataCommand
Returns a new instance of LinkeditDataCommand.
881 882 883 884 885 |
# File 'lib/macho/load_commands.rb', line 881 def initialize(offset, cmd, cmdsize, dataoff, datasize) super(offset, cmd, cmdsize) @dataoff = dataoff @datasize = datasize end |
Instance Attribute Details
#dataoff ⇒ Fixnum (readonly)
Returns offset to the data in the __LINKEDIT segment.
872 873 874 |
# File 'lib/macho/load_commands.rb', line 872 def dataoff @dataoff end |
#datasize ⇒ Fixnum (readonly)
Returns size of the data in the __LINKEDIT segment.
875 876 877 |
# File 'lib/macho/load_commands.rb', line 875 def datasize @datasize end |