| 428 | } |
| 429 | |
| 430 | void 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 | |
| 445 | void* xMemPoolAlloc(xMemPool* pool) |
| 446 | { |
no test coverage detected