ArrayBuffer

A fixed-length raw binary buffer.

API

The ArrayBuffer API is exactly as in JavaScript (MDN).

Static

  • ArrayBuffer.isView<T>(value: T): bool Returns true if value is one of the buffer views, such as one of the typed arrays or a DataView.

Constructor

  • new ArrayBuffer(length: i32) Constructs a new buffer of the given length in bytes.

Instance

Fields

  • ArrayBuffer#byteLength The buffer's length, in bytes.

Methods

  • ArrayBuffer#slice(begin?: i32, end?: i32): ArrayBuffer Returns a copy of this buffer from begin, inclusive, up to end, exclusive.

  • ArrayBuffer#toString(): string Returns a string representation of this buffer.