Class: MachO::DylibCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::DylibCommand
- Defined in:
- lib/macho/load_commands.rb
Overview
A load command representing some aspect of shared libraries, depending on filetype. Corresponds to LC_ID_DYLIB, LC_LOAD_DYLIB, LC_LOAD_WEAK_DYLIB, and LC_REEXPORT_DYLIB.
Instance Attribute Summary collapse
-
#compatibility_version ⇒ Fixnum
readonly
The library’s compatibility version number.
-
#current_version ⇒ Fixnum
readonly
The library’s current version number.
-
#name ⇒ MachO::LoadCommand::LCStr
readonly
The library’s path name as an LCStr.
-
#timestamp ⇒ Fixnum
readonly
The library’s build time stamp.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(raw_data, offset, cmd, cmdsize, name, timestamp, current_version, compatibility_version) ⇒ DylibCommand
constructor
private
A new instance of DylibCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(raw_data, offset, cmd, cmdsize, name, timestamp, current_version, compatibility_version) ⇒ DylibCommand
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DylibCommand.
510 511 512 513 514 515 516 517 |
# File 'lib/macho/load_commands.rb', line 510 def initialize(raw_data, offset, cmd, cmdsize, name, , current_version, compatibility_version) super(raw_data, offset, cmd, cmdsize) @name = LCStr.new(raw_data, self, name) = @current_version = current_version @compatibility_version = compatibility_version end |
Instance Attribute Details
#compatibility_version ⇒ Fixnum (readonly)
Returns the library’s compatibility version number.
504 505 506 |
# File 'lib/macho/load_commands.rb', line 504 def compatibility_version @compatibility_version end |
#current_version ⇒ Fixnum (readonly)
Returns the library’s current version number.
501 502 503 |
# File 'lib/macho/load_commands.rb', line 501 def current_version @current_version end |
#name ⇒ MachO::LoadCommand::LCStr (readonly)
Returns the library’s path name as an LCStr.
495 496 497 |
# File 'lib/macho/load_commands.rb', line 495 def name @name end |
#timestamp ⇒ Fixnum (readonly)
Returns the library’s build time stamp.
498 499 500 |
# File 'lib/macho/load_commands.rb', line 498 def end |