Class: MachO::LoadCommands::LinkeditDataCommand

Inherits:
LoadCommand show all
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

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

#dataoffInteger

Returns offset to the data in the __LINKEDIT segment.

Returns:

  • (Integer)

    offset to the data in the __LINKEDIT segment



1063
# File 'lib/macho/load_commands.rb', line 1063

field :dataoff, :uint32

#datasizeInteger

Returns size of the data in the __LINKEDIT segment.

Returns:

  • (Integer)

    size of the data in the __LINKEDIT segment



1066
# File 'lib/macho/load_commands.rb', line 1066

field :datasize, :uint32

#to_hHash

Returns a hash representation of this MachO::LoadCommands::LinkeditDataCommand.

Returns:



1069
1070
1071
1072
1073
1074
# File 'lib/macho/load_commands.rb', line 1069

def to_h
  {
    "dataoff" => dataoff,
    "datasize" => datasize,
  }.merge super
end