A load command specifying the version of the sources used to build the binary. Corresponds to LC_SOURCE_VERSION.
@see MachOStructure::FORMAT @api private
@see MachOStructure::SIZEOF @api private
@return [Fixnum] the version packed as a24.b10.c10.d10.e10
@api private
# File lib/macho/load_commands.rb, line 1242 def initialize(view, cmd, cmdsize, version) super(view, cmd, cmdsize) @version = version end
A string representation of the sources used to build the binary. @return [String] a string representation of the version
# File lib/macho/load_commands.rb, line 1249 def version_string binary = "%064b" % version segs = [ binary[0..23], binary[24..33], binary[34..43], binary[44..53], binary[54..63] ].map { |s| s.to_i(2) } segs.join(".") end