Class: MachO::LoadCommands::FilesetEntryCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::LoadCommands::FilesetEntryCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command containing a description of a Mach-O that is a constituent of a fileset. Each entry is further described by its own Mach header. Corresponds to LC_FILESET_ENTRY.
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=2Q=2L=2"- 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.
28
Instance Attribute Summary collapse
-
#entry_id ⇒ LCStr
readonly
The entry's ID.
-
#fileoff ⇒ Integer
readonly
The file offset of the entry.
- #reserved ⇒ void readonly
-
#vmaddr ⇒ Integer
readonly
The virtual memory address of the entry.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(view, cmd, cmdsize, vmaddr, fileoff, entry_id, reserved) ⇒ FilesetEntryCommand
constructor
A new instance of FilesetEntryCommand.
-
#to_h ⇒ Hash
A hash representation of this FilesetEntryCommand.
Methods inherited from LoadCommand
create, new_from_bin, #offset, #serializable?, #serialize, #to_s, #type
Methods inherited from MachOStructure
Constructor Details
#initialize(view, cmd, cmdsize, vmaddr, fileoff, entry_id, reserved) ⇒ FilesetEntryCommand
Returns a new instance of FilesetEntryCommand.
1825 1826 1827 1828 1829 1830 1831 |
# File 'lib/macho/load_commands.rb', line 1825 def initialize(view, cmd, cmdsize, vmaddr, fileoff, entry_id, reserved) super(view, cmd, cmdsize) @vmaddr = vmaddr @fileoff = fileoff @entry_id = LCStr.new(self, entry_id) @reserved = reserved end |
Instance Attribute Details
#entry_id ⇒ LCStr (readonly)
Returns the entry's ID.
1812 1813 1814 |
# File 'lib/macho/load_commands.rb', line 1812 def entry_id @entry_id end |
#fileoff ⇒ Integer (readonly)
Returns the file offset of the entry.
1809 1810 1811 |
# File 'lib/macho/load_commands.rb', line 1809 def fileoff @fileoff end |
#reserved ⇒ void (readonly)
This method returns an undefined value.
1815 1816 1817 |
# File 'lib/macho/load_commands.rb', line 1815 def reserved @reserved end |
#vmaddr ⇒ Integer (readonly)
Returns the virtual memory address of the entry.
1806 1807 1808 |
# File 'lib/macho/load_commands.rb', line 1806 def vmaddr @vmaddr end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::FilesetEntryCommand.
1834 1835 1836 1837 1838 1839 1840 1841 |
# File 'lib/macho/load_commands.rb', line 1834 def to_h { "vmaddr" => vmaddr, "fileoff" => fileoff, "entry_id" => entry_id, "reserved" => reserved, }.merge super end |