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

Function BNGetKernelCache

view/kernelcache/core/KernelCache.cpp:2116–2129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2114extern "C"
2115{
2116 BNKernelCache* BNGetKernelCache(BNBinaryView* data)
2117 {
2118 if (!data)
2119 return nullptr;
2120
2121 Ref<BinaryView> view = new BinaryView(BNNewViewReference(data));
2122 if (auto cache = KernelCache::GetFromKCView(view))
2123 {
2124 cache->AddAPIRef();
2125 return cache->GetAPIObject();
2126 }
2127
2128 return nullptr;
2129 }
2130
2131 BNKernelCache* BNNewKernelCacheReference(BNKernelCache* cache)
2132 {

Callers 1

KernelCacheMethod · 0.85

Calls 2

AddAPIRefMethod · 0.45
GetAPIObjectMethod · 0.45

Tested by

no test coverage detected