Class: MachO::TwolevelHintsCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(offset, cmd, cmdsize, htoffset, nhints) ⇒ TwolevelHintsCommand

Returns a new instance of TwolevelHintsCommand.



458
459
460
461
462
# File 'lib/macho/load_commands.rb', line 458

def initialize(offset, cmd, cmdsize, htoffset, nhints)
	super(offset, cmd, cmdsize)
	@htoffset = htoffset
	@nhints = nhints
end

Instance Attribute Details

#htoffsetObject (readonly)

Returns the value of attribute htoffset.



453
454
455
# File 'lib/macho/load_commands.rb', line 453

def htoffset
  @htoffset
end

#nhintsObject (readonly)

Returns the value of attribute nhints.



453
454
455
# File 'lib/macho/load_commands.rb', line 453

def nhints
  @nhints
end