Class: Indis::MachO::DySymTabCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/indis-macho/command.rb

Overview

LC_DYSYMTAB

Constant Summary

Constants inherited from Command

Command::CMD, Command::CMD_CLASS, Command::LC_REQ_DYLD

Instance Attribute Summary collapse

Attributes inherited from Command

#cmd, #length

Instance Method Summary collapse

Methods inherited from Command

class_of_command, #initialize

Constructor Details

This class inherits a constructor from Indis::MachO::Command

Instance Attribute Details

#indirect_symbolsObject (readonly)

Returns the value of attribute indirect_symbols.



237
238
239
# File 'lib/indis-macho/command.rb', line 237

def indirect_symbols
  @indirect_symbols
end

Instance Method Details

#process(payload) ⇒ Object



239
240
241
242
243
244
245
246
# File 'lib/indis-macho/command.rb', line 239

def process(payload)
  super(payload)
  
  ofs = payload.pos
  payload.pos = @indirectsymoff
  @indirect_symbols = payload.read(@nindirectsyms * 4).unpack('V*')
  payload.pos = ofs
end