| 234 | } |
| 235 | |
| 236 | std::optional<CacheImage> SharedCacheController::GetImageContaining(uint64_t address) const |
| 237 | { |
| 238 | BNSharedCacheImage apiImage; |
| 239 | if (!BNSharedCacheControllerGetImageContaining(m_object, address, &apiImage)) |
| 240 | return std::nullopt; |
| 241 | CacheImage image = ImageFromApi(apiImage); |
| 242 | BNSharedCacheFreeImage(apiImage); |
| 243 | return image; |
| 244 | } |
| 245 | |
| 246 | std::optional<CacheImage> SharedCacheController::GetImageWithName(const std::string &name) const |
| 247 | { |
no test coverage detected