Skip to main content

asdf_ndarray_read_tile_2d

Function asdf_ndarray_read_tile_2d 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn asdf_ndarray_read_tile_2d( ndarray: *mut asdf_ndarray_t, x: u64, y: u64, width: u64, height: u64, plane_origin: *const u64, dst_t: ScalarTypeAbi, dst: *mut *mut c_void, ) -> NdarrayErr
Expand description

Read a 2-D tile, converting to dst_t.

For an array of more than two dimensions, plane_origin gives the ndim - 2 outer coordinates; null selects the first plane. x/width index the last axis and y/height the one before it.

ยงSafety

See asdf_ndarray_read_tile_ndim; plane_origin, when not null, must point to ndim - 2 values.