Class: Indis::MachO::VersionMinIPhoneOSCommand

Inherits:
Command
  • Object
show all
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

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

#sdkObject (readonly)

Returns the value of attribute sdk.



304
305
306
# File 'lib/indis-macho/command.rb', line 304

def sdk
  @sdk
end

#versionObject (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