class MachO::LoadCommands::TwolevelHintsCommand::TwolevelHintsTable::TwolevelHint
An individual two-level namespace lookup hint.
Attributes
isub_image[R]
@return [Integer] the index into the sub-images
itoc[R]
@return [Integer] the index into the table of contents
Public Class Methods
new(blob)
click to toggle source
@param blob [Integer] the 32-bit number containing the lookup hint @api private
# File lib/macho/load_commands.rb, line 999 def initialize(blob) @isub_image = blob >> 24 @itoc = blob & 0x00FFFFFF end
Public Instance Methods
to_h()
click to toggle source
@return [Hash] a hash representation of this {TwolevelHint}
# File lib/macho/load_commands.rb, line 1005 def to_h { "isub_image" => isub_image, "itoc" => itoc, } end