MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / Malloc

Function Malloc

modules/engine/graphics/src/d3d12/D3D12MemAlloc.cpp:184–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184static void* Malloc(const ALLOCATION_CALLBACKS& allocs, size_t size, size_t alignment)
185{
186 void* const result = (*allocs.pAllocate)(size, alignment, allocs.pPrivateData);
187 D3D12MA_ASSERT(result);
188 return result;
189}
190static void Free(const ALLOCATION_CALLBACKS& allocs, void* memory)
191{
192 (*allocs.pFree)(memory, allocs.pPrivateData);

Callers 2

AllocateFunction · 0.85
AllocateArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected