Javascript Int16Array buffer

Introduction

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

Int16Array.buffer

The Javascript Int16Array buffer property is a read only property.

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

Using the Javascript Int16Array buffer property

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



PreviousNext

Related