| 49 | } |
| 50 | |
| 51 | void allocate(const common::offset_t size, storage::MemoryManager* mm, bool initializeToZero) { |
| 52 | allocation = mm->allocateBuffer(initializeToZero, size * sizeof(T)); |
| 53 | data = std::span<T>(reinterpret_cast<T*>(allocation->getData()), size); |
| 54 | this->size = size; |
| 55 | } |
| 56 | |
| 57 | common::offset_t getSize() const { return size; } |
| 58 |
no test coverage detected