malloc_rust

Function generic_try_rust_malloc

Source
pub unsafe extern "C" fn generic_try_rust_malloc<T: TryInto<usize>>(
    size: T,
) -> *mut c_void
Expand description

Generic malloc implementation which allows size to be optionally convertable.

In case of invalid size, returns NULL pointer