24 std::vector<T> buffer;
36 if (this->buffer.size() < count) this->buffer.resize(count);
37 return this->buffer.data();
50 this->buffer.resize(count, {});
51 return this->buffer.data();
60 return this->buffer.data();
A reusable buffer that can be used for places that temporary allocate a bit of memory and do that ver...
T * ZeroAllocate(size_t count)
Get buffer of at least count times T of default initialised elements.
const T * GetBuffer() const
Get the currently allocated buffer.
T * Allocate(size_t count)
Get buffer of at least count times T.