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

Function BNSharedCacheControllerGetRegions

view/sharedcache/core/ffi.cpp:216–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214 }
215
216 BNSharedCacheRegion* BNSharedCacheControllerGetRegions(BNSharedCacheController* controller, size_t* count)
217 {
218 const auto& regions = controller->object->GetCache().GetRegions();
219 *count = regions.size();
220 BNSharedCacheRegion* apiRegions = new BNSharedCacheRegion[*count];
221 int idx = 0;
222 for (const auto& [_, region] : regions)
223 apiRegions[idx++] = RegionToApi(region);
224 return apiRegions;
225 }
226
227 BNSharedCacheRegion* BNSharedCacheControllerGetLoadedRegions(BNSharedCacheController* controller, size_t* count)
228 {

Callers 1

GetRegionsMethod · 0.85

Calls 3

GetRegionsMethod · 0.80
RegionToApiFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected