We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9ac749 commit b1c2bb1Copy full SHA for b1c2bb1
rust/src/function.rs
@@ -467,6 +467,15 @@ impl Function {
467
}
468
469
470
+ pub fn variable_type(&self, var: &Variable) -> Option<Conf<Ref<Type>>> {
471
+ let raw_var = BNVariable::from(var);
472
+ let result = unsafe { BNGetVariableType(self.handle, &raw_var) };
473
+ match result.type_.is_null() {
474
+ false => Some(Conf::<Ref<Type>>::from_owned_raw(result)),
475
+ true => None,
476
+ }
477
478
+
479
pub fn high_level_il(&self, full_ast: bool) -> Result<Ref<HighLevelILFunction>, ()> {
480
unsafe {
481
let hlil_ptr = BNGetFunctionHighLevelIL(self.handle);
0 commit comments