Struct binaryninja::callingconvention::ConventionBuilder
source · pub struct ConventionBuilder<A: Architecture> { /* private fields */ }
Implementations§
source§impl<A: Architecture> ConventionBuilder<A>
impl<A: Architecture> ConventionBuilder<A>
pub fn new(arch: &A) -> Self
pub fn caller_saved_registers(self, regs: &[&str]) -> Self
pub fn callee_saved_registers(self, regs: &[&str]) -> Self
pub fn int_arg_registers(self, regs: &[&str]) -> Self
pub fn float_arg_registers(self, regs: &[&str]) -> Self
pub fn reserved_stack_space_for_arg_registers(self, val: bool) -> Self
pub fn stack_adjusted_on_return(self, val: bool) -> Self
pub fn is_eligible_for_heuristics(self, val: bool) -> Self
pub fn return_int_reg(self, reg: &str) -> Self
pub fn return_hi_int_reg(self, reg: &str) -> Self
pub fn return_float_reg(self, reg: &str) -> Self
pub fn global_pointer_reg(self, reg: &str) -> Self
pub fn implicitly_defined_registers(self, regs: &[&str]) -> Self
pub fn are_argument_registers_used_for_var_args(self, val: bool) -> Self
pub fn register(self, name: &str) -> Ref<CallingConvention<A>>
Trait Implementations§
source§impl<A: Architecture> CallingConventionBase for ConventionBuilder<A>
impl<A: Architecture> CallingConventionBase for ConventionBuilder<A>
type Arch = A
fn caller_saved_registers(&self) -> Vec<A::Register>
fn callee_saved_registers(&self) -> Vec<A::Register>
fn int_arg_registers(&self) -> Vec<A::Register>
fn float_arg_registers(&self) -> Vec<A::Register>
fn reserved_stack_space_for_arg_registers(&self) -> bool
fn stack_adjusted_on_return(&self) -> bool
fn is_eligible_for_heuristics(&self) -> bool
fn return_int_reg(&self) -> Option<A::Register>
fn return_hi_int_reg(&self) -> Option<A::Register>
fn return_float_reg(&self) -> Option<A::Register>
fn global_pointer_reg(&self) -> Option<A::Register>
fn implicitly_defined_registers(&self) -> Vec<A::Register>
fn are_argument_registers_used_for_var_args(&self) -> bool
impl<A: Architecture> Send for ConventionBuilder<A>
impl<A: Architecture> Sync for ConventionBuilder<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for ConventionBuilder<A>where
A: RefUnwindSafe,
<A as Architecture>::Handle: RefUnwindSafe,
<A as Architecture>::Register: RefUnwindSafe,
impl<A> Unpin for ConventionBuilder<A>
impl<A> UnwindSafe for ConventionBuilder<A>where
A: RefUnwindSafe,
<A as Architecture>::Handle: UnwindSafe,
<A as Architecture>::Register: UnwindSafe,
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