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.
Instance Method Summary collapse
-
#entry_id ⇒ LCStr
The entry's ID.
-
#fileoff ⇒ Integer
The file offset of the entry.
- #reserved ⇒ void
-
#segment ⇒ SegmentCommand64?
The matching segment command or nil if nothing matches.
-
#to_h ⇒ Hash
A hash representation of this FilesetEntryCommand.
-
#vmaddr ⇒ Integer
The virtual memory address of the entry.
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
#entry_id ⇒ LCStr
Returns the entry's ID.
1357 |
# File 'lib/macho/load_commands.rb', line 1357 field :entry_id, :lcstr, :to_s => true |
#fileoff ⇒ Integer
Returns the file offset of the entry.
1354 |
# File 'lib/macho/load_commands.rb', line 1354 field :fileoff, :uint64 |
#reserved ⇒ void
This method returns an undefined value.
1360 |
# File 'lib/macho/load_commands.rb', line 1360 field :reserved, :uint32 |
#segment ⇒ SegmentCommand64?
Returns the matching segment command or nil if nothing matches.
1373 1374 1375 |
# File 'lib/macho/load_commands.rb', line 1373 def segment view.macho_file.command(:LC_SEGMENT_64).select { |cmd| cmd.fileoff == fileoff }.first end |
#to_h ⇒ Hash
Returns a hash representation of this MachO::LoadCommands::FilesetEntryCommand.
1363 1364 1365 1366 1367 1368 1369 1370 |
# File 'lib/macho/load_commands.rb', line 1363 def to_h { "vmaddr" => vmaddr, "fileoff" => fileoff, "entry_id" => entry_id, "reserved" => reserved, }.merge super end |
#vmaddr ⇒ Integer
Returns the virtual memory address of the entry.
1351 |
# File 'lib/macho/load_commands.rb', line 1351 field :vmaddr, :uint64 |