Struct ilhook::x64::Registers

source ·
#[repr(C)]
pub struct Registers {
Show 22 fields pub xmm0: u128, pub xmm1: u128, pub xmm2: u128, pub xmm3: u128, pub r15: u64, pub r14: u64, pub r13: u64, pub r12: u64, pub r11: u64, pub r10: u64, pub r9: u64, pub r8: u64, pub rbp: u64, pub rdi: u64, pub rsi: u64, pub rdx: u64, pub rcx: u64, pub rbx: u64, pub rsp: u64, pub rflags: u64, pub _no_use: u64, pub rax: u64,
}
Expand description

The common registers.

Fields§

§xmm0: u128

The xmm0 register

§xmm1: u128

The xmm1 register

§xmm2: u128

The xmm2 register

§xmm3: u128

The xmm3 register

§r15: u64

The r15 register

§r14: u64

The r14 register

§r13: u64

The r13 register

§r12: u64

The r12 register

§r11: u64

The r11 register

§r10: u64

The r10 register

§r9: u64

The r9 register

§r8: u64

The r8 register

§rbp: u64

The rbp register

§rdi: u64

The rdi register

§rsi: u64

The rsi register

§rdx: u64

The rdx register

§rcx: u64

The rcx register

§rbx: u64

The rbx register

§rsp: u64

The rsp register

§rflags: u64

The flags register

§_no_use: u64

Unused var

§rax: u64

The rax register

Implementations§

source§

impl Registers

source

pub unsafe fn get_stack(&self, cnt: usize) -> u64

Get the value by index.

Parameters
  • cnt - The index of the arguments.
Safety

Process may crash if register rsp does not point to a valid stack.

Trait Implementations§

source§

impl Clone for Registers

source§

fn clone(&self) -> Registers

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Registers

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.