Never heard of DataView before, thanks! This is the first time I do something "low level" in Javascript, so there is probably a lot that could be improved.
BTW, here is an example passing arrays between Javascript and Rust: https://www.hellorust.com/demos/canvas/index.html