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

Method function_constraint

plugins/warp/src/cache.rs:309–317  ·  view source on GitHub ↗

Construct a function constraint, must pass the offset at which it is located.

(&self, function: &BNFunction, offset: i64)

Source from the content-addressed store, hash-verified

307
308 /// Construct a function constraint, must pass the offset at which it is located.
309 pub fn function_constraint(&self, function: &BNFunction, offset: i64) -> FunctionConstraint {
310 let guid = self.try_function_guid(function);
311 let symbol = from_bn_symbol(&function.symbol());
312 FunctionConstraint {
313 guid,
314 symbol: Some(symbol),
315 offset,
316 }
317 }
318
319 /// Construct a function constraint from a symbol, typically used for extern function call sites, must pass the offset at which it is located.
320 pub fn function_constraint_from_symbol(

Callers 2

call_site_constraintsMethod · 0.80
adjacency_constraintsMethod · 0.80

Calls 3

from_bn_symbolFunction · 0.85
try_function_guidMethod · 0.80
symbolMethod · 0.45

Tested by

no test coverage detected