(&self)
| 546 | } |
| 547 | |
| 548 | pub fn lifted_il(&self) -> Result<Ref<LiftedILFunction<CoreArchitecture>>, ()> { |
| 549 | unsafe { |
| 550 | let llil_ptr = BNGetFunctionLiftedIL(self.handle); |
| 551 | match llil_ptr.is_null() { |
| 552 | false => Ok(LiftedILFunction::ref_from_raw(self.arch(), llil_ptr)), |
| 553 | true => Err(()), |
| 554 | } |
| 555 | } |
| 556 | } |
| 557 | |
| 558 | pub fn lifted_il_if_available(&self) -> Option<Ref<LiftedILFunction<CoreArchitecture>>> { |
| 559 | let llil_ptr = unsafe { BNGetFunctionLiftedILIfAvailable(self.handle) }; |