MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xMemPoolSetup

Function xMemPoolSetup

src/SB/Core/x/xMemMgr.cpp:430–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430void xMemPoolSetup(xMemPool* pool, void* buffer, U32 nextOffset, U32 flags, xMemPoolInitCB initCB,
431 U32 size, U32 count, U32 numRealloc)
432{
433 pool->FreeList = NULL;
434 pool->NextOffset = nextOffset;
435 pool->Flags = flags;
436 pool->UsedList = NULL;
437 pool->InitCB = initCB;
438 pool->Buffer = buffer;
439 pool->Size = size;
440 pool->NumRealloc = numRealloc;
441 pool->Total = 0;
442 xMemPoolAddElements(pool, buffer, count);
443}
444
445void* xMemPoolAlloc(xMemPool* pool)
446{

Callers 2

xAnimTempTransitionInitFunction · 0.85
xAnimPoolInitFunction · 0.85

Calls 1

xMemPoolAddElementsFunction · 0.70

Tested by

no test coverage detected