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.
Constant Summary collapse
- FORMAT =
"VVVV"
- SIZEOF =
16
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(raw_data, offset, cmd, cmdsize, htoffset, nhints) ⇒ TwolevelHintsCommand
constructor
private
A new instance of TwolevelHintsCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(raw_data, offset, cmd, cmdsize, htoffset, nhints) ⇒ TwolevelHintsCommand
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of TwolevelHintsCommand.
719 720 721 722 723 |
# File 'lib/macho/load_commands.rb', line 719 def initialize(raw_data, offset, cmd, cmdsize, htoffset, nhints) super(raw_data, offset, cmd, cmdsize) @htoffset = htoffset @nhints = nhints end |
Instance Attribute Details
#htoffset ⇒ Fixnum (readonly)
Returns the offset to the hint table.
710 711 712 |
# File 'lib/macho/load_commands.rb', line 710 def htoffset @htoffset end |
#nhints ⇒ Fixnum (readonly)
Returns the number of hints in the hint table.
713 714 715 |
# File 'lib/macho/load_commands.rb', line 713 def nhints @nhints end |