Class: MachO::LoadCommands::LinkeditDataCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::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, LC_LINKER_OPTIMIZATION_HINT, LC_DYLD_EXPORTS_TRIE, LC_DYLD_CHAINED_FIXUPS, or LC_ATOM_INFO.
Instance Method Summary collapse
-
#dataoff ⇒ Integer
Offset to the data in the __LINKEDIT segment.
-
#datasize ⇒ Integer
Size of the data in the __LINKEDIT segment.
-
#to_h ⇒ Hash
A hash representation of this LinkeditDataCommand.
Methods inherited from LoadCommand
#cmd, #cmdsize, create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type, #view
Methods inherited from MachOStructure
bytesize, format, #initialize, new_from_bin
Constructor Details
This class inherits a constructor from MachO::MachOStructure
Instance Method Details
#dataoff ⇒ Integer
Returns offset to the data in the __LINKEDIT segment.
1063 |
# File 'lib/macho/load_commands.rb', line 1063 field :dataoff, :uint32 |
#datasize ⇒ Integer
Returns size of the data in the __LINKEDIT segment.
1066 |
# File 'lib/macho/load_commands.rb', line 1066 field :datasize, :uint32 |
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::LinkeditDataCommand.
1069 1070 1071 1072 1073 1074 |
# File 'lib/macho/load_commands.rb', line 1069 def to_h { "dataoff" => dataoff, "datasize" => datasize, }.merge super end |