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

Method function

plugins/warp/src/cache.rs:205–219  ·  view source on GitHub ↗
(
        &self,
        function: &BNFunction,
        llil: &RegularLowLevelILFunction<A>,
    )

Source from the content-addressed store, hash-verified

203
204impl FunctionCache {
205 pub fn function<A: Architecture>(
206 &self,
207 function: &BNFunction,
208 llil: &RegularLowLevelILFunction<A>,
209 ) -> Function {
210 let function_id = FunctionID::from(function);
211 match self.cache.get(&function_id) {
212 Some(function) => function.value().to_owned(),
213 None => {
214 let function = build_function(function, llil);
215 self.cache.insert(function_id, function.clone());
216 function
217 }
218 }
219 }
220}
221
222#[derive(Clone, Debug, Default)]

Callers 4

function_benchmarkFunction · 0.45
basic_block_guidFunction · 0.45
cached_functionFunction · 0.45
insert_workflowFunction · 0.45

Calls 6

build_functionFunction · 0.85
getMethod · 0.45
to_ownedMethod · 0.45
valueMethod · 0.45
insertMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected