MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_heap_zalloc_aligned_at

Function mi_heap_zalloc_aligned_at

3rd/mimalloc-2.0.9/src/alloc-aligned.c:171–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169// ------------------------------------------------------
170
171mi_decl_nodiscard mi_decl_restrict void* mi_heap_zalloc_aligned_at(mi_heap_t* heap, size_t size, size_t alignment, size_t offset) mi_attr_noexcept {
172 return mi_heap_malloc_zero_aligned_at(heap, size, alignment, offset, true);
173}
174
175mi_decl_nodiscard mi_decl_restrict void* mi_heap_zalloc_aligned(mi_heap_t* heap, size_t size, size_t alignment) mi_attr_noexcept {
176 return mi_heap_zalloc_aligned_at(heap, size, alignment, 0);

Callers 3

mi_heap_zalloc_alignedFunction · 0.85
mi_zalloc_aligned_atFunction · 0.85

Calls 1

Tested by

no test coverage detected