2.9.1 Typed Arrays

Typed arrays provide access to raw binary data and enables efficient byte-level programming ability to JavaScript developers. The functionality is implemented by the following three objects.

  • ArrayBuffer: The ArrayBuffer object provides the ability to create and work with an opaque buffer of native memory.

  • TypeArray: Each of the TypeArray objects provides a view over an ArrayBuffer based on the element Type, allowing typed access to the contents of the native buffer.

  • DataView: The DataView object provides unstructured access to the contents of an ArrayBuffer, reading and writing basic data types and fixed offsets in the buffer.