| 205 | } |
| 206 | |
| 207 | uint32_t ComponentFrameStorage::Capacity() const |
| 208 | { |
| 209 | if (Pages.size() > 0) { |
| 210 | auto sizeBucket = ComponentSizeBucket(); |
| 211 | auto cappedPages = std::min<uint32_t>(Pages.size() - 1, 8); |
| 212 | return FrameAllocatorComponentsAggregate[sizeBucket][cappedPages] |
| 213 | + FrameAllocatorComponentsPerPage[sizeBucket][8] * (Pages.size() - cappedPages - 1); |
| 214 | } else { |
| 215 | return 0; |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | void FrameAllocator::Free(void* ptr) |
| 220 | { |
no test coverage detected