MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / af_memory_manager_native_alloc

Function af_memory_manager_native_alloc

src/api/c/memory.cpp:497–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497af_err af_memory_manager_native_alloc(af_memory_manager handle, void **ptr,
498 size_t size) {
499 try {
500 MemoryManager &manager = getMemoryManager(handle);
501 *ptr = manager.wrapper->nativeAlloc(size);
502 }
503 CATCHALL;
504
505 return AF_SUCCESS;
506}
507
508af_err af_memory_manager_native_free(af_memory_manager handle, void *ptr) {
509 try {

Callers 1

alloc_fnFunction · 0.50

Calls 1

nativeAllocMethod · 0.45

Tested by

no test coverage detected