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.

Constant Summary collapse

FORMAT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

"L=5".freeze
SIZEOF =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

20

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #view

Instance Method Summary collapse

Methods inherited from LoadCommand

create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(view, cmd, cmdsize, name, minor_version, header_addr) ⇒ FvmlibCommand

Returns a new instance of FvmlibCommand.



1309
1310
1311
1312
1313
1314
# File 'lib/macho/load_commands.rb', line 1309

def initialize(view, cmd, cmdsize, name, minor_version, header_addr)
  super(view, cmd, cmdsize)
  @name = LCStr.new(self, name)
  @minor_version = minor_version
  @header_addr = header_addr
end

Instance Attribute Details

#header_addrFixnum (readonly)

Returns the library's header address.

Returns:

  • (Fixnum)

    the library's header address



1299
1300
1301
# File 'lib/macho/load_commands.rb', line 1299

def header_addr
  @header_addr
end

#minor_versionFixnum (readonly)

Returns the library's minor version number.

Returns:

  • (Fixnum)

    the library's minor version number



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

def minor_version
  @minor_version
end

#nameMachO::LoadCommands::LoadCommand::LCStr (readonly)

Returns the library's target pathname.

Returns:



1293
1294
1295
# File 'lib/macho/load_commands.rb', line 1293

def name
  @name
end