Class: Duran::MachineContext::XMM_t

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/duran/structs/machine_context.rb

Overview

comment from dr_defines.h:

The SSE registers xmm0-xmm5 (-xmm15 on Linux) are volatile (caller-saved) for 64-bit and WOW64, and are actually zeroed out on Windows system calls. These fields are ignored for 32-bit processes that are not WOW64, or if the underlying processor does not support SSE. Use dr_mcontext_xmm_fields_valid() to determine whether the fields are valid.

Instance Method Summary collapse

Instance Method Details

#u32Object



28
29
30
# File 'lib/duran/structs/machine_context.rb', line 28

def u32
  self[:u8_stub].to_ptr.get_array_of_uint32(0,4)
end

#u64Object



24
25
26
# File 'lib/duran/structs/machine_context.rb', line 24

def u64
  self[:u8_stub].to_ptr.get_array_of_uint64(0,2)
end

#u8Object



20
21
22
# File 'lib/duran/structs/machine_context.rb', line 20

def u8
  self[:u8_stub].to_a
end