Class: MachO::VersionMinCommand

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command containing the minimum OS version on which the binary was built to run. Corresponds to LC_VERSION_MIN_MACOSX and LC_VERSION_MIN_IPHONEOS.

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(offset, cmd, cmdsize, version, sdk) ⇒ VersionMinCommand

Returns a new instance of VersionMinCommand.



811
812
813
814
815
# File 'lib/macho/load_commands.rb', line 811

def initialize(offset, cmd, cmdsize, version, sdk)
	super(offset, cmd, cmdsize)
	@version = version
	@sdk = sdk
end

Instance Attribute Details

#sdkFixnum (readonly)

Returns the SDK version X.Y.Z packed as x16.y8.z8.

Returns:

  • (Fixnum)

    the SDK version X.Y.Z packed as x16.y8.z8



805
806
807
# File 'lib/macho/load_commands.rb', line 805

def sdk
  @sdk
end

#versionFixnum (readonly)

Returns the version X.Y.Z packed as x16.y8.z8.

Returns:

  • (Fixnum)

    the version X.Y.Z packed as x16.y8.z8



802
803
804
# File 'lib/macho/load_commands.rb', line 802

def version
  @version
end