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

Returns at least size of memory ready for usage. In versions v0.6.8 and prior, this function was allowed to return NULL. In later versions, if allocator->mem_acquire() returns NULL, this function will assert and exit. To handle conditions where OOM is not a fatal error, allocator->mem_acquire() is responsible for finding/reclaiming/running a GC etc…before returning.