MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / Array

Method Array

include/reactphysics3d/containers/Array.h:216–224  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

214
215 /// Constructor
216 Array(MemoryAllocator& allocator, uint64 capacity = 0)
217 : mBuffer(nullptr), mSize(0), mCapacity(0), mAllocator(allocator) {
218
219 if (capacity > 0) {
220
221 // Allocate memory
222 reserve(capacity);
223 }
224 }
225
226 /// Copy constructor
227 Array(const Array<T>& array) : mBuffer(nullptr), mSize(0), mCapacity(0), mAllocator(array.mAllocator) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected