Class: MachO::TwolevelHintsCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::TwolevelHintsCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command containing the offset and number of hints in the two-level namespace lookup hints table. Corresponds to LC_TWOLEVEL_HINTS.
Instance Attribute Summary collapse
-
#htoffset ⇒ Fixnum
readonly
The offset to the hint table.
-
#nhints ⇒ Fixnum
readonly
The number of hints in the hint table.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, htoffset, nhints) ⇒ TwolevelHintsCommand
constructor
A new instance of TwolevelHintsCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, htoffset, nhints) ⇒ TwolevelHintsCommand
Returns a new instance of TwolevelHintsCommand.
827 828 829 830 831 |
# File 'lib/macho/load_commands.rb', line 827 def initialize(offset, cmd, cmdsize, htoffset, nhints) super(offset, cmd, cmdsize) @htoffset = htoffset @nhints = nhints end |
Instance Attribute Details
#htoffset ⇒ Fixnum (readonly)
Returns the offset to the hint table.
818 819 820 |
# File 'lib/macho/load_commands.rb', line 818 def htoffset @htoffset end |
#nhints ⇒ Fixnum (readonly)
Returns the number of hints in the hint table.
821 822 823 |
# File 'lib/macho/load_commands.rb', line 821 def nhints @nhints end |