Skip to main content

mi_zalloc_csize

Function mi_zalloc_csize 

Source
pub unsafe fn mi_zalloc_csize(size: size_t) -> *mut c_void
Expand description

Allocate zeroed memory when the size is statically known by the caller.

This mirrors mimalloc’s inline mi_zalloc_csize helper.

§Safety

The returned pointer must be checked for null and freed with a compatible mimalloc free API. The caller is responsible for honoring raw allocation pointer aliasing and lifetime rules.