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

Method function_guid

plugins/warp/src/cache.rs:333–347  ·  view source on GitHub ↗
(
        &self,
        function: &BNFunction,
        llil: &LowLevelILFunction<A, M, NonSSA<RegularNonSSA>>,
    )

Source from the content-addressed store, hash-verified

331 }
332
333 pub fn function_guid<A: Architecture, M: FunctionMutability>(
334 &self,
335 function: &BNFunction,
336 llil: &LowLevelILFunction<A, M, NonSSA<RegularNonSSA>>,
337 ) -> FunctionGUID {
338 let function_id = FunctionID::from(function);
339 match self.cache.get(&function_id) {
340 Some(function_guid) => function_guid.value().to_owned(),
341 None => {
342 let function_guid = function_guid(function, llil);
343 self.cache.insert(function_id, function_guid);
344 function_guid
345 }
346 }
347 }
348
349 pub fn try_function_guid(&self, function: &BNFunction) -> Option<FunctionGUID> {
350 let function_id = FunctionID::from(function);

Callers 1

cached_function_guidFunction · 0.80

Calls 5

function_guidFunction · 0.85
getMethod · 0.45
to_ownedMethod · 0.45
valueMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected