pub struct Details<'c> { /* private fields */ }Implementations§
Source§impl<'c> Details<'c>
impl<'c> Details<'c>
Sourcepub fn has_prefix(&self, prefix: Prefix) -> bool
pub fn has_prefix(&self, prefix: Prefix) -> bool
Returns true if the instruction has the given prefix, or false otherwise.
Sourcepub fn opcode(&self) -> &[u8] ⓘ
pub fn opcode(&self) -> &[u8] ⓘ
Instruction opcode. This value can be from 1 to 4 bytes in size. This will contain the VEX opcode as well.
Sourcepub fn rex(&self) -> u8
pub fn rex(&self) -> u8
Returns the REX prefix byte. This value is only relevant for x86_64 and only if it is non-zero.
Sourcepub fn addr_size(&self) -> u8
pub fn addr_size(&self) -> u8
Address size. This can be overriden by the Prefix::AddrSize prefix.
Sourcepub fn disp(&self) -> i64
pub fn disp(&self) -> i64
Returns the displacement value. This is only valid if the value returned by Encoding::disp_offset
which can be retrieved via Details::encoding is a non-zero value.
Sourcepub fn sib_index(&self) -> Reg
pub fn sib_index(&self) -> Reg
Returns the SIB index register, or Reg::Invalid when irrelevant
Sourcepub fn sib_base(&self) -> Reg
pub fn sib_base(&self) -> Reg
Returns the SIB base register, or Reg::Invalid when irrelevant.
Sourcepub fn op_count(&self) -> usize
pub fn op_count(&self) -> usize
Returns the number of operands in this instruction, or
zero when this instruction has no operands. This value will
be the same as the length of the slice returned by Details::operands.
Sourcepub fn operands(&self) -> &[Op]
pub fn operands(&self) -> &[Op]
Returns the operands contained in this instruction. The length
of the returned slice will be the same as teh value returned
by Details::op_count.