Class: MachO::LoadCommands::FvmlibCommand

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

Overview

An obsolete load command containing the path to a library to be loaded into memory. Corresponds to LC_LOADFVMLIB and LC_IDFVMLIB.

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 library's header address.

Returns:

  • (Integer)

    the library's header address



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

field :header_addr, :uint32

#minor_versionInteger

Returns the library's minor version number.

Returns:

  • (Integer)

    the library's minor version number



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

field :minor_version, :uint32

#nameLCStr

Returns the library's target pathname.

Returns:

  • (LCStr)

    the library's target pathname



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

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

#to_hHash

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

Returns:



1315
1316
1317
1318
1319
1320
1321
# File 'lib/macho/load_commands.rb', line 1315

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