[−][src]Struct zydis::ffi::DecodedInstruction
Fields
machine_mode: MachineMode
The machine mode used to decode this instruction.
mnemonic: Mnemonic
The instruction-mnemonic.
length: u8
The length of the decoded instruction.
encoding: InstructionEncoding
The instruciton-encoding.
opcode_map: OpcodeMap
The opcode map.
opcode: u8
The instruction opcode.
stack_width: u8
The stack width.
operand_width: u8
The effective operand width.
address_width: u8
The effective address width.
operand_count: u8
The number of instruction operands.
operands: [DecodedOperand; 10]
Detailed information for all instruction operands.
attributes: InstructionAttributes
Instruction attributes.
accessed_flags: [CPUFlagAction; 21]
The action performed to the CPUFlag
used to index this array.
avx: AvxInfo
Extended information for AVX
instructions.
meta: MetaInfo
Meta info.
raw: RawInfo
Detailed information about different instruction-parts.
Implementations
impl DecodedInstruction
[src]
pub fn calc_absolute_address(
&self,
address: u64,
operand: &DecodedOperand
) -> Result<u64>
[src]
&self,
address: u64,
operand: &DecodedOperand
) -> Result<u64>
Calculates the absolute address for the given instruction operand,
using the given address
as the address for this instruction.
pub fn calc_absolute_address_ex(
&self,
address: u64,
operand: &DecodedOperand,
context: &RegisterContext
) -> Result<u64>
[src]
&self,
address: u64,
operand: &DecodedOperand,
context: &RegisterContext
) -> Result<u64>
Behaves like calc_absolute_address
, but takes runtime-known values of
registers passed in the context
into account.
pub fn get_flags(&self, action: CPUFlagAction) -> Result<CPUFlag>
[src]
Returns a mask of CPU-flags that match the given action
.
pub fn get_flags_read(&self) -> Result<CPUFlag>
[src]
Returns a mask of CPU-flags that are read (tested) by this instruction.
pub fn get_flags_written(&self) -> Result<CPUFlag>
[src]
Returns a mask of CPU-flags that are written (modified, undefined) by this instruction.
pub fn get_segments(&self) -> Result<InstructionSegments>
[src]
Returns offsets and sizes of all logical instruction segments.
Trait Implementations
impl Clone for DecodedInstruction
[src]
fn clone(&self) -> DecodedInstruction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DecodedInstruction
[src]
impl Eq for DecodedInstruction
[src]
impl Hash for DecodedInstruction
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<DecodedInstruction> for DecodedInstruction
[src]
fn eq(&self, other: &DecodedInstruction) -> bool
[src]
fn ne(&self, other: &DecodedInstruction) -> bool
[src]
impl StructuralEq for DecodedInstruction
[src]
impl StructuralPartialEq for DecodedInstruction
[src]
Auto Trait Implementations
impl RefUnwindSafe for DecodedInstruction
impl Send for DecodedInstruction
impl Sync for DecodedInstruction
impl Unpin for DecodedInstruction
impl UnwindSafe for DecodedInstruction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,