Julien Sulpis @jsulpis.dev · Nov 19

For instance a Uint16Array indicates that we want to read every 2 bytes of the ArrayBuffer as unsigned shorts (0 to 65535). We can create multiple "views" (typed arrays) from the same buffer, to extract multiple data types (which is really cool).

0 likes 1 replies

?

Replies

Julien Sulpis · Nov 19

And then there is the SharedArrayBuffer. Like the ArrayBuffer, this is a raw binary data buffer, but this one can be shared between worker threads ! The main thread for instance can share binary data with a worker thread. Both threads can access (read/write) this buffer.