MCPcopy Create free account
hub / github.com/RenderKit/oidn / realloc

Method realloc

core/heap.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 void USMHeap::realloc(size_t newByteSize)
62 {
63 if (newByteSize == byteSize)
64 return;
65
66 preRealloc();
67
68 engine->usmFree(ptr, storage);
69 ptr = static_cast<char*>(engine->usmAlloc(newByteSize, storage));
70 byteSize = newByteSize;
71
72 postRealloc();
73 }
74
75OIDN_NAMESPACE_END

Callers 2

trimMethod · 0.80
attachMethod · 0.80

Calls 2

usmFreeMethod · 0.45
usmAllocMethod · 0.45

Tested by

no test coverage detected