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

Method MemoryManager

src/memory/MemoryManager.cpp:32–38  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

30
31// Constructor
32MemoryManager::MemoryManager(MemoryAllocator* baseAllocator, size_t initAllocatedMemory) :
33 mBaseAllocator(baseAllocator == nullptr ? &mDefaultAllocator : baseAllocator),
34 mHeapAllocator(*mBaseAllocator, initAllocatedMemory),
35 mPoolAllocator(mHeapAllocator),
36 mSingleFrameAllocator(mHeapAllocator) {
37
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected