I'm interested in the reason for this behavior. Why does it matter where the show starts from?
Some architectures do not allow unrelated word accesses, and architectures that allow this, for example, on x86, have performance penalties (although some commands must be aligned).
Do I really need to cut and copy byte values ββto a new array to get my float values?
Yes, like Marcusβs example, you have to create a new ArrayBuffer with a UInt8Array and a Float32Array for read_buffer (copy from UInt8Array and interpret from the Float32Array ), Then you can read your data using UInt8Array , copy it to the read_buffer , and then interpret using Float32Array . This is a pretty seamless process.
Keldon alleyne
source share