Class: MachO::LoadCommands::FvmfileCommand

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

Overview

An obsolete load command containing the path to a file to be loaded into memory. Corresponds to LC_FVMFILE.

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

#header_addrInteger

Returns the virtual address being loaded at.

Returns:

  • (Integer)

    the virtual address being loaded at



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

field :header_addr, :uint32

#nameLCStr

Returns the pathname of the file being loaded.

Returns:

  • (LCStr)

    the pathname of the file being loaded



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

field :name, :lcstr, :to_s => true

#to_hHash

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

Returns:



1294
1295
1296
1297
1298
1299
# File 'lib/macho/load_commands.rb', line 1294

def to_h
  {
    "name" => name.to_h,
    "header_addr" => header_addr,
  }.merge super
end