pub struct RegisterIndex {
pub extended_index: Gp,
pub size: GpSize,
}
Fields§
§extended_index: Gp
Index of the full register size. E.g. this would be the index of RAX for the register EAX.
size: GpSize
The size of the register, including a shift for 8-bit registers
Implementations§
Source§impl RegisterIndex
impl RegisterIndex
Sourcepub fn apply_sizing(&self, v: u64) -> u64
pub fn apply_sizing(&self, v: u64) -> u64
Converts the internal emulator representation of a register into a u64 e.g. for AL, this consumes the value of RAX and outputs the low 8 bits
pub fn apply_sizing_signed(&self, v: u64) -> i64
pub fn apply_update(&self, extended_register: u64, v: u64) -> u64
Trait Implementations§
Source§impl Clone for RegisterIndex
impl Clone for RegisterIndex
Source§fn clone(&self) -> RegisterIndex
fn clone(&self) -> RegisterIndex
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RegisterIndex
impl Debug for RegisterIndex
Source§impl From<Gp> for RegisterIndex
impl From<Gp> for RegisterIndex
Source§impl From<Register> for RegisterIndex
impl From<Register> for RegisterIndex
impl Copy for RegisterIndex
Auto Trait Implementations§
impl Freeze for RegisterIndex
impl RefUnwindSafe for RegisterIndex
impl Send for RegisterIndex
impl Sync for RegisterIndex
impl Unpin for RegisterIndex
impl UnwindSafe for RegisterIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more