binaryninja::architecture::register

Trait RegisterInfo

source
pub trait RegisterInfo: Sized {
    type RegType: Register<InfoType = Self>;

    // Required methods
    fn parent(&self) -> Option<Self::RegType>;
    fn size(&self) -> usize;
    fn offset(&self) -> usize;
    fn implicit_extend(&self) -> ImplicitRegisterExtend;
}
Expand description

Information about a register.

Required Associated Types§

source

type RegType: Register<InfoType = Self>

Required Methods§

source

fn parent(&self) -> Option<Self::RegType>

The register that this register is an alias of.

§Example (x86-64)

The register rax is a parent of the register eax.

source

fn size(&self) -> usize

Size of the register in bytes.

source

fn offset(&self) -> usize

Offset of the register in bytes from the start of the containing RegisterInfo::parent.

source

fn implicit_extend(&self) -> ImplicitRegisterExtend

Used when this register aliases a logical register to determine what happens to the upper bits.

Object Safety§

This trait is not object safe.

Implementors§