[`LowLevelILFunction`] used to represent Low Level IL
(
&self,
)
| 48 | |
| 49 | /// [`LowLevelILFunction`] used to represent Low Level IL |
| 50 | pub unsafe fn lifted_il_function( |
| 51 | &self, |
| 52 | ) -> Option<Ref<MutableLiftedILFunction<CoreArchitecture>>> { |
| 53 | let func = self.function(); |
| 54 | let result = unsafe { BNGetFunctionLiftedIL(func.handle) }; |
| 55 | let arch = self.function().arch(); |
| 56 | unsafe { |
| 57 | Some(LowLevelILFunction::ref_from_raw( |
| 58 | arch, |
| 59 | NonNull::new(result)?.as_ptr(), |
| 60 | )) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | pub fn set_lifted_il_function(&self, value: &MutableLiftedILFunction<CoreArchitecture>) { |
| 65 | unsafe { BNSetLiftedILFunction(self.handle.as_ptr(), value.handle) } |