Javascript Uint16Array buffer

Introduction

The Javascript Uint16Array buffer property returns the ArrayBuffer referenced by a Uint16Array.

Uint16Array.buffer

The Javascript Uint16Array buffer property is a read only property.

The value is set when the Uint16Array is constructed and cannot be changed.

Using the Javascript Uint16Array buffer property

var buffer = new ArrayBuffer(8);
var uint16 = new Uint16Array(buffer);
uint16.buffer;



PreviousNext

Related