Class: Twib::Switch::Debug::Event::AttachProcess

Inherits:
Event
  • Object
show all
Defined in:
lib/twib/switch/debug.rb

Constant Summary collapse

TYPE =
0

Instance Attribute Summary collapse

Attributes inherited from Event

#flags, #thread_id

Instance Method Summary collapse

Methods inherited from Event

#initialize, unpack

Constructor Details

This class inherits a constructor from Twib::Switch::Debug::Event::Event

Instance Attribute Details

#mmu_flagsObject (readonly)

Returns the value of attribute mmu_flags.



40
41
42
# File 'lib/twib/switch/debug.rb', line 40

def mmu_flags
  @mmu_flags
end

#process_idObject (readonly)

Returns the value of attribute process_id.



40
41
42
# File 'lib/twib/switch/debug.rb', line 40

def process_id
  @process_id
end

#process_nameObject (readonly)

Returns the value of attribute process_name.



40
41
42
# File 'lib/twib/switch/debug.rb', line 40

def process_name
  @process_name
end

#title_idObject (readonly)

Returns the value of attribute title_id.



40
41
42
# File 'lib/twib/switch/debug.rb', line 40

def title_id
  @title_id
end

Instance Method Details

#event_typeObject



37
38
39
# File 'lib/twib/switch/debug.rb', line 37

def event_type
  :attach_process
end

#unpack_specific(pack) ⇒ Object



34
35
36
# File 'lib/twib/switch/debug.rb', line 34

def unpack_specific(pack)
  @title_id, @process_id, @process_name, @mmu_flags = pack.unpack("Q<Q<Z12L<")
end