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, or LC_DYLD_CHAINED_FIXUPS.

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



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

field :dataoff, :uint32

#datasizeInteger

Returns size of the data in the __LINKEDIT segment.

Returns:

  • (Integer)

    size of the data in the __LINKEDIT segment



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

field :datasize, :uint32

#to_hHash

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

Returns:



970
971
972
973
974
975
# File 'lib/macho/load_commands.rb', line 970

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