#pragma once #include #include namespace ore { struct Buffer { template void Allocate(Allocator* allocator, int num) { size = sizeof(T) * num; data = static_cast(allocator->New(size)); } void Free(Allocator* allocator) { allocator->Free(data); data = nullptr; size = 0; } char* data; int size; }; } // namespace ore