Skip to main content

asdf_value_of_ndarray

Function asdf_value_of_ndarray 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn asdf_value_of_ndarray( file: *mut AsdfFile, obj: *const asdf_ndarray_t, ) -> *mut AsdfValue
Expand description

Build a value for an ndarray, writing its data into a new block.

The array’s source in the tree is the index of the block appended to file, so the value is only meaningful once written with that file.

§Safety

file must be a file handle open for writing and obj a valid asdf_ndarray_t. The result must be released with asdf_value_destroy.