ArrayBuffer

A standard JavaScript object representing a block of raw binary memory, which you read and write through a typed array or DataView.

In more detail

You cannot read an ArrayBuffer directly; you wrap it in a view such as a Uint8Array. Several views can share one ArrayBuffer, so a change made through one is visible through the others. ArrayBuffers are transferable, so large binary data can move to a worker without copying.

Example

Small Node.js Buffers are views onto one shared ArrayBuffer taken from the slab pool.

Related terms

Taught in

References