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

Function BNSharedCacheControllerGetImages

view/sharedcache/core/ffi.cpp:319–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317 }
318
319 BNSharedCacheImage* BNSharedCacheControllerGetImages(BNSharedCacheController* controller, size_t* count)
320 {
321 const auto& images = controller->object->GetCache().GetImages();
322 *count = images.size();
323 BNSharedCacheImage* apiImages = new BNSharedCacheImage[*count];
324 size_t idx = 0;
325 for (const auto& [_, image] : images)
326 apiImages[idx++] = ImageToApi(image);
327 return apiImages;
328 }
329
330 BNSharedCacheImage* BNSharedCacheControllerGetLoadedImages(BNSharedCacheController* controller, size_t* count)
331 {

Callers 1

GetImagesMethod · 0.85

Calls 3

ImageToApiFunction · 0.70
GetImagesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected