Skip to main content

asdf_ndarray_data_copy

Function asdf_ndarray_data_copy 

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

Allocate the array’s buffer and copy src into it.

§Safety

src must point to at least asdf_ndarray_nbytes readable bytes.