I have a process returning some raw binary data as a Uint8Array, the data represents two unsigned 32bit numbers (Uint32)...
On the browser console:
data: Uint8Array(8) [1, 0, 0, 0, 2, 0, 0, 0]
This represents two unsigned 32 bit numbers (4 bytes each)
How do I convert this into javascript numbers?
I tried Uint32Array.from(x) but that created an array of 8 numbers, which is wrong.
The first 4 bytes -> 1, next 4 bytes -> 2 => array of 2 numbers please.