Class: OdinFlex::MachO::LC_VERSION_MIN_MACOSX

Inherits:
Command
  • Object
show all
Defined in:
lib/odinflex/mach-o.rb

Constant Summary collapse

VALUE =
0x24
SIZE =

uuid

16

Instance Attribute Summary collapse

Attributes inherited from Command

#cmd, #size

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

#command?, from_offset

Methods included from SectionTypes

#command?, #dysymtab?, #section?, #segment?, #symtab?

Constructor Details

#initialize(cmd, size, uuid) ⇒ LC_VERSION_MIN_MACOSX

Returns a new instance of LC_VERSION_MIN_MACOSX.



174
175
176
177
# File 'lib/odinflex/mach-o.rb', line 174

def initialize cmd, size, uuid
  super(cmd, size)
  @uuid = uuid
end

Instance Attribute Details

#uuidObject (readonly)

Returns the value of attribute uuid.



172
173
174
# File 'lib/odinflex/mach-o.rb', line 172

def uuid
  @uuid
end

Class Method Details

.from_io(cmd, size, offset, io) ⇒ Object



168
169
170
# File 'lib/odinflex/mach-o.rb', line 168

def self.from_io cmd, size, offset, io
  new(cmd, size, *io.read(SIZE))
end