Class: Indis::MachO::VersionMinIPhoneOSCommand

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

Overview

LC_VERSION_MIN_IPHONEOS

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

- (Object) sdk (readonly)

Returns the value of attribute sdk



306
307
308
# File 'lib/indis-macho/command.rb', line 306

def sdk
  @sdk
end

- (Object) version (readonly)

Returns the value of attribute version



306
307
308
# File 'lib/indis-macho/command.rb', line 306

def version
  @version
end

Instance Method Details

- (Object) process(payload)



308
309
310
311
312
313
# File 'lib/indis-macho/command.rb', line 308

def process(payload)
  v, s = payload.read(8).unpack('VV')
  
  @version = "#{(v & 0xffff0000) >> 16}.#{(v & 0xff00) >> 8}.#{v & 0xff}"
  @sdk = s
end