Name
ArrayBufferView — common properties for types based on ArrayBuffers
Synopsis
ArrayBufferView serves as a superclass for types that provide access to the bytes of an ArrayBuffer. You can’t create an ArrayBufferView directly: it exists to define the common properties for subtypes like TypedArray and DataView.
Properties
readonly ArrayBuffer
buffer
The underlying ArrayBuffer that this object is a view of.
readonly unsigned long
byteLength
The length, in bytes, of the portion of
buffer
that is accessible through this view.readonly unsigned long
byteOffset
The starting position, in bytes, of the portion of the buffer that is accessible through this view.
Get JavaScript: The Definitive Guide, 6th Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.