| 312 | } |
| 313 | |
| 314 | std::vector<CacheRegion> SharedCacheController::GetRegions() const |
| 315 | { |
| 316 | size_t count; |
| 317 | BNSharedCacheRegion *regions = BNSharedCacheControllerGetRegions(m_object, &count); |
| 318 | std::vector<CacheRegion> result; |
| 319 | result.reserve(count); |
| 320 | for (size_t i = 0; i < count; i++) |
| 321 | result.emplace_back(RegionFromApi(regions[i])); |
| 322 | BNSharedCacheFreeRegionList(regions, count); |
| 323 | return result; |
| 324 | } |
| 325 | |
| 326 | std::vector<CacheImage> SharedCacheController::GetImages() const |
| 327 | { |
no test coverage detected