| 46 | } |
| 47 | |
| 48 | void OffsetMemoryPool::acquire(MemoryMappings &handles) |
| 49 | { |
| 50 | ARM_COMPUTE_ERROR_ON(_blob == nullptr); |
| 51 | |
| 52 | // Set memory to handlers |
| 53 | for (auto &handle : handles) |
| 54 | { |
| 55 | ARM_COMPUTE_ERROR_ON(handle.first == nullptr); |
| 56 | handle.first->set_owned_region(_blob->extract_subregion(handle.second, _blob_info.size - handle.second)); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void OffsetMemoryPool::release(MemoryMappings &handles) |
| 61 | { |
nothing calls this directly
no test coverage detected