From JavaScript, I call this Rust function. Does Bindgen copy the memory twice or zero times?
#[wasm_bindgen]
pub fn mod_u8_slice(input_output: &mut [u8]) {
input_output.iter_mut().for_each(|x| *x += 1);
}
From JavaScript, I call this Rust function. Does Bindgen copy the memory twice or zero times?
#[wasm_bindgen]
pub fn mod_u8_slice(input_output: &mut [u8]) {
input_output.iter_mut().for_each(|x| *x += 1);
}