HomeToolsAbout a20k

Array Buffer

What is it

Object used to represent a generic raw binary data buffer.

You cannot directly manipulate the contents of an ArrayBuffer; instead, you create one of the typed array objects or a DataView object which represents the buffer in a specific format, and use that to read and write the contents of the buffer.

You can also get an array buffer from existing data, for example, from a Base64 string or from a local file.

const buffer = new ArrayBuffer(8); const view = new Int32Array(buffer);
© VincentVanKoh