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

Function try_cached_function_match

plugins/warp/src/cache.rs:59–69  ·  view source on GitHub ↗
(function: &BNFunction)

Source from the content-addressed store, hash-verified

57}
58
59pub fn try_cached_function_match(function: &BNFunction) -> Option<Function> {
60 let view = function.view();
61 let view_id = ViewID::from(view);
62 let function_id = FunctionID::from(function);
63 let function_cache = MATCHED_FUNCTION_CACHE.get_or_init(Default::default);
64 function_cache
65 .get(&view_id)?
66 .get(&function_id)?
67 .value()
68 .to_owned()
69}
70
71pub fn cached_function<A: Architecture>(
72 function: &BNFunction,

Callers

nothing calls this directly

Calls 4

viewMethod · 0.45
to_ownedMethod · 0.45
valueMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected