Class: MachO::LoadCommands::FvmfileCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::FvmfileCommand
- 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.
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=4".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.
16
Instance Attribute Summary collapse
-
#header_addr ⇒ Integer
readonly
The virtual address being loaded at.
-
#name ⇒ LCStr
readonly
The pathname of the file being loaded.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(view, cmd, cmdsize, name, header_addr) ⇒ FvmfileCommand
constructor
A new instance of FvmfileCommand.
-
#to_h ⇒ Hash
A hash representation of this FvmfileCommand.
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, header_addr) ⇒ FvmfileCommand
Returns a new instance of FvmfileCommand.
1701 1702 1703 1704 1705 |
# File 'lib/macho/load_commands.rb', line 1701 def initialize(view, cmd, cmdsize, name, header_addr) super(view, cmd, cmdsize) @name = LCStr.new(self, name) @header_addr = header_addr end |
Instance Attribute Details
#header_addr ⇒ Integer (readonly)
Returns the virtual address being loaded at.
1691 1692 1693 |
# File 'lib/macho/load_commands.rb', line 1691 def header_addr @header_addr end |
#name ⇒ LCStr (readonly)
Returns the pathname of the file being loaded.
1688 1689 1690 |
# File 'lib/macho/load_commands.rb', line 1688 def name @name end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::FvmfileCommand.
1708 1709 1710 1711 1712 1713 |
# File 'lib/macho/load_commands.rb', line 1708 def to_h { "name" => name.to_h, "header_addr" => header_addr, }.merge super end |