Class: MachO::LoadCommands::FvmlibCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::FvmlibCommand
- 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"
- 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
-
#header_addr ⇒ Integer
readonly
The library's header address.
-
#minor_version ⇒ Integer
readonly
The library's minor version number.
-
#name ⇒ LCStr
readonly
The library's target pathname.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(view, cmd, cmdsize, name, minor_version, header_addr) ⇒ FvmlibCommand
constructor
A new instance of FvmlibCommand.
-
#to_h ⇒ Hash
A hash representation of this FvmlibCommand.
Methods inherited from LoadCommand
create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type
Methods inherited from MachOStructure
Constructor Details
#initialize(view, cmd, cmdsize, name, minor_version, header_addr) ⇒ FvmlibCommand
Returns a new instance of FvmlibCommand.
1744 1745 1746 1747 1748 1749 |
# File 'lib/macho/load_commands.rb', line 1744 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_addr ⇒ Integer (readonly)
Returns the library's header address.
1734 1735 1736 |
# File 'lib/macho/load_commands.rb', line 1734 def header_addr @header_addr end |
#minor_version ⇒ Integer (readonly)
Returns the library's minor version number.
1731 1732 1733 |
# File 'lib/macho/load_commands.rb', line 1731 def minor_version @minor_version end |
#name ⇒ LCStr (readonly)
Returns the library's target pathname.
1728 1729 1730 |
# File 'lib/macho/load_commands.rb', line 1728 def name @name end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::FvmlibCommand.
1752 1753 1754 1755 1756 1757 1758 |
# File 'lib/macho/load_commands.rb', line 1752 def to_h { "name" => name.to_h, "minor_version" => minor_version, "header_addr" => header_addr, }.merge super end |