Class: OdinFlex::MachO::LC_UNIXTHREAD

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

Constant Summary collapse

VALUE =
0x04
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_UNIXTHREAD

Returns a new instance of LC_UNIXTHREAD.



96
97
98
99
# File 'lib/odinflex/mach-o.rb', line 96

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

Instance Attribute Details

#uuidObject (readonly)

Returns the value of attribute uuid.



94
95
96
# File 'lib/odinflex/mach-o.rb', line 94

def uuid
  @uuid
end

Class Method Details

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



90
91
92
# File 'lib/odinflex/mach-o.rb', line 90

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