Skip to main content

asdf_ndarray_data_alloc

Function asdf_ndarray_data_alloc 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn asdf_ndarray_data_alloc( ndarray: *mut asdf_ndarray_t, ) -> *mut c_void
Expand description

Allocate a data buffer sized for the array.

Repeated calls return the same buffer. It is released by asdf_ndarray_data_dealloc, not automatically.

ยงSafety

ndarray must be null or a valid asdf_ndarray_t.