Class: Indis::MachO::LoadDyLibCommand
- Inherits:
-
Command
- Object
- Command
- Indis::MachO::LoadDyLibCommand
- Defined in:
- lib/indis-macho/command.rb
Overview
LC_LOAD_DYLIB
Constant Summary
Constant Summary
Constants inherited from Command
Command::CMD, Command::CMD_CLASS, Command::LC_REQ_DYLD
Instance Attribute Summary (collapse)
-
- (Object) compatibility_version
readonly
Returns the value of attribute compatibility_version.
-
- (Object) current_version
readonly
Returns the value of attribute current_version.
-
- (Object) name
readonly
Returns the value of attribute name.
-
- (Object) timestamp
readonly
Returns the value of attribute timestamp.
Attributes inherited from Command
Instance Method Summary (collapse)
Methods inherited from Command
Constructor Details
This class inherits a constructor from Indis::MachO::Command
Instance Attribute Details
- (Object) compatibility_version (readonly)
Returns the value of attribute compatibility_version
287 288 289 |
# File 'lib/indis-macho/command.rb', line 287 def compatibility_version @compatibility_version end |
- (Object) current_version (readonly)
Returns the value of attribute current_version
287 288 289 |
# File 'lib/indis-macho/command.rb', line 287 def current_version @current_version end |
- (Object) name (readonly)
Returns the value of attribute name
287 288 289 |
# File 'lib/indis-macho/command.rb', line 287 def name @name end |
- (Object) timestamp (readonly)
Returns the value of attribute timestamp
287 288 289 |
# File 'lib/indis-macho/command.rb', line 287 def @timestamp end |
Instance Method Details
- (Object) process(payload)
289 290 291 292 293 294 295 296 297 298 |
# File 'lib/indis-macho/command.rb', line 289 def process(payload) super(payload) ofs_to_name = payload.read(4).unpack('V')[0] @timestamp, @current_version, @compatibility_version = payload.read(4*3).unpack('VVV') name_sz = @length - ofs_to_name - 4*3 + 8 + 4 @name = payload.read(name_sz).strip end |