MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / mi_heap_mallocn

Function mi_heap_mallocn

system/lib/mimalloc/src/alloc.c:339–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339mi_decl_nodiscard mi_decl_restrict void* mi_heap_mallocn(mi_heap_t* heap, size_t count, size_t size) mi_attr_noexcept {
340 size_t total;
341 if (mi_count_size_overflow(count, size, &total)) return NULL;
342 return mi_heap_malloc(heap, total);
343}
344
345
346// Expand (or shrink) in place (or fail)

Callers

nothing calls this directly

Calls 2

mi_count_size_overflowFunction · 0.85
mi_heap_mallocFunction · 0.85

Tested by

no test coverage detected