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

Method GetImageWithName

view/sharedcache/api/sharedcache.cpp:246–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246std::optional<CacheImage> SharedCacheController::GetImageWithName(const std::string &name) const
247{
248 BNSharedCacheImage apiImage;
249 if (!BNSharedCacheControllerGetImageWithName(m_object, name.c_str(), &apiImage))
250 return std::nullopt;
251 CacheImage image = ImageFromApi(apiImage);
252 BNSharedCacheFreeImage(apiImage);
253 return image;
254}
255
256std::vector<std::string> SharedCacheController::GetImageDependencies(const CacheImage &image) const
257{

Callers 2

loadImagesWithAddrMethod · 0.45
DisplayDSCPickerFunction · 0.45

Calls 4

BNSharedCacheFreeImageFunction · 0.85
c_strMethod · 0.80
ImageFromApiFunction · 0.70

Tested by

no test coverage detected