3 ms·
Yes. But we can do it in the last step, right? #[no_mangle] pub extern "C" fn process( in_ptr: *mut f32, out_ptr: *mut f32, siz
by chaosprint 4y ago
Yes. But we can do it in the last step, right?
#[no_mangle]
pub extern "C" fn process(
in_ptr: *mut f32,
out_ptr: *mut f32,
size: usize,
result_ptr: \*mut u8
) {
let _in_buf: &mut [f32] = unsafe { std::slice::from_raw_parts_mut(in_ptr, size) };
}