HomeToolsAbout

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.

// instantiation of buffer const buffer = new ArrayBuffer(8); // typed array object creation with specific format of the buffer const view = new Int32Array(buffer);
AboutContact