MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / reallocate

Method reallocate

TheForceEngine/TFE_System/memoryPool.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void* MemoryPool::reallocate(void* ptr, size_t oldSize, size_t newSize)
50{
51 u8* newMem = (u8*)allocate(newSize);
52 memcpy(newMem, ptr, oldSize);
53 return newMem;
54}

Callers 2

ensureFunction · 0.80
printFunction · 0.80

Calls 1

allocateFunction · 0.85

Tested by

no test coverage detected