Name

ArrayBuffer — a fixed-length sequence of bytes

Synopsis

An ArrayBuffer represents a fixed-length sequence of bytes in memory, but it defines no way to get or set those bytes. ArrayBufferViews like the TypedArray classes provide a way to access and interpret the bytes.

Constructor

new ArrayBuffer(unsigned long length)

Creates a new ArrayBuffer with the specified number of bytes. All bytes in the new ArrayBuffer are initialized to 0.

Properties

readonly unsigned long byteLength

the length, in bytes, of the ArrayBuffer.

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.