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



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

field :fileoff, :uint64

#filesizeInteger

Returns the amount to map from the file.

Returns:

  • (Integer)

    the amount to map from the file



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

field :filesize, :uint64

#vmaddrInteger

Returns the memory address of the segment.

Returns:

  • (Integer)

    the memory address of the segment



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

field :vmaddr, :uint64

#vmsizeInteger

Returns the memory size of the segment.

Returns:

  • (Integer)

    the memory size of the segment



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

field :vmsize, :uint64