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

Method function_at

rust/src/binary_view.rs:1047–1055  ·  view source on GitHub ↗
(&self, platform: &Platform, addr: u64)

Source from the content-addressed store, hash-verified

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) }

Callers 3

test_debug_infoFunction · 0.80
test_llil_visitorFunction · 0.80
call_site_constraintsMethod · 0.80

Implementers 1

binary_view.rsrust/src/binary_view.rs

Calls 1

as_refMethod · 0.45

Tested by 2

test_debug_infoFunction · 0.64
test_llil_visitorFunction · 0.64