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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.