Class: Indis::MachO::VersionMinIPhoneOSCommand
- Defined in:
- lib/indis-macho/command.rb
Overview
LC_VERSION_MIN_IPHONEOS
Constant Summary
Constants inherited from Command
Command::CMD, Command::CMD_CLASS, Command::LC_REQ_DYLD
Instance Attribute Summary collapse
-
#sdk ⇒ Object
readonly
Returns the value of attribute sdk.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
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
#sdk ⇒ Object (readonly)
Returns the value of attribute sdk.
304 305 306 |
# File 'lib/indis-macho/command.rb', line 304 def sdk @sdk end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
304 305 306 |
# File 'lib/indis-macho/command.rb', line 304 def version @version end |
Instance Method Details
#process(payload) ⇒ Object
306 307 308 309 310 311 |
# File 'lib/indis-macho/command.rb', line 306 def process(payload) v, s = payload.read(8).unpack('VV') @version = "#{(v & 0xffff0000) >> 16}.#{(v & 0xff00) >> 8}.#{v & 0xff}" @sdk = s end |