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

Function _sakura_new_n

modules/core/core/src/core/memory/memory.c:217–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217SKR_EXTERN_C SKR_CORE_API void* _sakura_new_n(size_t count, size_t size, const char* pool_name)
218{
219 void* p = mi_new_n(count, size);
220 if (pool_name)
221 {
222 SkrCAllocN(p, size * count, pool_name);
223 }
224 else
225 {
226 SkrCAlloc(p, size* count);
227 }
228 return p;
229}
230
231SKR_CORE_API void* _sakura_new_aligned(size_t size, size_t alignment, const char* pool_name)
232{

Callers 1

SkrNewNWithCZoneFunction · 0.85

Calls 2

mi_new_nFunction · 0.85
mallocFunction · 0.50

Tested by

no test coverage detected