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

Function register_cache_destructor

plugins/warp/src/cache.rs:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29pub static TYPE_REF_CACHE: OnceLock<DashMap<ViewID, TypeRefCache>> = OnceLock::new();
30
31pub fn register_cache_destructor() {
32 pub static mut CACHE_DESTRUCTOR: CacheDestructor = CacheDestructor;
33 #[allow(static_mut_refs)]
34 // SAFETY: This can be done as the backing data is an opaque ZST.
35 unsafe {
36 CACHE_DESTRUCTOR.register()
37 };
38}
39
40pub fn cached_function_match<F>(function: &BNFunction, f: F) -> Option<Function>
41where

Callers 2

CorePluginInitFunction · 0.85
mainFunction · 0.85

Calls 1

registerMethod · 0.45

Tested by

no test coverage detected