(&self, platform: &Platform, addr: u64)
| 1045 | } |
| 1046 | |
| 1047 | fn function_at(&self, platform: &Platform, addr: u64) -> Option<Ref<Function>> { |
| 1048 | unsafe { |
| 1049 | let raw_func_ptr = BNGetAnalysisFunction(self.as_ref().handle, platform.handle, addr); |
| 1050 | match raw_func_ptr.is_null() { |
| 1051 | false => Some(Function::ref_from_raw(raw_func_ptr)), |
| 1052 | true => None, |
| 1053 | } |
| 1054 | } |
| 1055 | } |
| 1056 | |
| 1057 | fn function_start_before(&self, addr: u64) -> u64 { |
| 1058 | unsafe { BNGetPreviousFunctionStartBeforeAddress(self.as_ref().handle, addr) } |