pub unsafe extern "C" fn aws_mem_calloc(
    allocator: *mut aws_allocator,
    num: usize,
    size: usize
) -> *mut c_void
Expand description

Allocates a block of memory for an array of num elements, each of them size bytes long, and initializes all its bits to zero. In versions v0.6.8 and prior, this function was allowed to return NULL. In later versions, if allocator->mem_calloc() returns NULL, this function will assert and exit. To handle conditions where OOM is not a fatal error, allocator->mem_calloc() is responsible for finding/reclaiming/running a GC etc…before returning.