Class: MachO::LoadCommands::SegmentCommand64

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

Overview

A load command indicating that part of this file is to be mapped into the task's address space. Corresponds to LC_SEGMENT_64.

Instance Method Summary collapse

Methods inherited from SegmentCommand

#flag?, #flags, #guess_align, #initprot, #maxprot, #nsects, #sections, #segname, #to_h

Methods inherited from LoadCommand

#cmd, #cmdsize, create, new_from_bin, #offset, #serializable?, #serialize, #to_h, #to_s, #type, #view

Methods inherited from MachOStructure

bytesize, format, #initialize, new_from_bin, #to_h

Constructor Details

This class inherits a constructor from MachO::MachOStructure

Instance Method Details

#fileoffInteger

Returns the file offset of the segment.

Returns:

  • (Integer)

    the file offset of the segment



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

field :fileoff, :uint64

#filesizeInteger

Returns the amount to map from the file.

Returns:

  • (Integer)

    the amount to map from the file



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

field :filesize, :uint64

#vmaddrInteger

Returns the memory address of the segment.

Returns:

  • (Integer)

    the memory address of the segment



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

field :vmaddr, :uint64

#vmsizeInteger

Returns the memory size of the segment.

Returns:

  • (Integer)

    the memory size of the segment



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

field :vmsize, :uint64