Class: Indis::MachO::DylibCommand

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

Overview

LC_ID_DYLIB

Constant Summary

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

#nameObject (readonly)

Returns the value of attribute name



351
352
353
# File 'lib/indis-macho/command.rb', line 351

def name
  @name
end

Instance Method Details

#process(payload) ⇒ Object



353
354
355
356
357
358
# File 'lib/indis-macho/command.rb', line 353

def process(payload)
  super(payload)
  
  name_sz = @length - @name_offset - 4*3 + 8 + 4
  @name = payload.read(name_sz).strip
end