MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / var_definitions

Method var_definitions

rust/src/medium_level_il/function.rs:116–123  ·  view source on GitHub ↗
(&self, var: &Variable)

Source from the content-addressed store, hash-verified

114 }
115
116 pub fn var_definitions(&self, var: &Variable) -> Array<MediumLevelILInstruction> {
117 let mut count = 0;
118 let raw_var = BNVariable::from(var);
119 let raw_instr_idxs =
120 unsafe { BNGetMediumLevelILVariableDefinitions(self.handle, &raw_var, &mut count) };
121 assert!(!raw_instr_idxs.is_null());
122 unsafe { Array::new(raw_instr_idxs, count, self.to_owned()) }
123 }
124
125 pub fn create_user_stack_var<'a, S: BnStrCompatible, C: Into<Conf<&'a Type>>>(
126 self,

Callers 2

set_user_var_valueMethod · 0.80
clear_user_var_valueMethod · 0.80

Calls 1

to_ownedMethod · 0.45

Tested by

no test coverage detected