| 300 | } |
| 301 | |
| 302 | std::vector<CacheRegion> SharedCacheController::GetLoadedRegions() const |
| 303 | { |
| 304 | size_t count; |
| 305 | BNSharedCacheRegion *regions = BNSharedCacheControllerGetLoadedRegions(m_object, &count); |
| 306 | std::vector<CacheRegion> result; |
| 307 | result.reserve(count); |
| 308 | for (size_t i = 0; i < count; i++) |
| 309 | result.emplace_back(RegionFromApi(regions[i])); |
| 310 | BNSharedCacheFreeRegionList(regions, count); |
| 311 | return result; |
| 312 | } |
| 313 | |
| 314 | std::vector<CacheRegion> SharedCacheController::GetRegions() const |
| 315 | { |
no test coverage detected