Let's say I have a struct of the form
typedef struct {
uint32_t intensity;
uint16_t ring;
float32_t x;
float32_t y;
float32_t z;
} Point;
(18 bytes total) and I have a huge array of several tens of thousands of these 18-byte structs in an ArrayBuffer.
How do I iterate through them efficiently without calling a "new DataView()" constructor irritatively in a loop?
This is in the browser, not NodeJS.