class MachO::LoadCommands::FilesetEntryCommand

A load command containing a description of a Mach-O that is a constituent of a fileset. Each entry is further described by its own Mach header. Corresponds to LC_FILESET_ENTRY.

Public Instance Methods

segment() click to toggle source

@return [SegmentCommand64, nil] the matching segment command or nil if nothing matches

# File lib/macho/load_commands.rb, line 1472
def segment
  view.macho_file.command(:LC_SEGMENT_64).select { |cmd| cmd.fileoff == fileoff }.first
end
to_h() click to toggle source

@return [Hash] a hash representation of this {FilesetEntryCommand}

Calls superclass method MachO::LoadCommands::LoadCommand#to_h
# File lib/macho/load_commands.rb, line 1462
def to_h
  {
    "vmaddr" => vmaddr,
    "fileoff" => fileoff,
    "entry_id" => entry_id,
    "reserved" => reserved,
  }.merge super
end