TypedArray.prototype.buffer
La propiedad de acceso buffer
representa el ArrayBuffer
referenciada por un TypedArray en tiempo de construcción.
Sintaxis
typedArray.buffer
Descripción
La propiedad buffer
es una propiedad de acceso cuya función set accessor es undefined
, significa que tu sólo puedes leer esta propiedad. El valor es establecido cuando TypedArray se construye y no puede ser cambiado. TypedArray es uno de los TypedArray objects.
Ejemplos
Usando la propiedad buffer
var buffer = new ArrayBuffer(8);
var uint16 = new Uint16Array(buffer);
uint16.buffer; // ArrayBuffer { byteLength: 8 }
Especificaciones
Especificación | Estatus | Comentario |
---|---|---|
ECMAScript 2015 (6th Edition, ECMA-262) La definición de 'TypedArray.prototype.buffer' en esta especificación. |
Standard | Definición inicial. |
ECMAScript (ECMA-262) La definición de 'TypedArray.prototype.buffer' en esta especificación. |
Living Standard |
Compatibilidad del navegador
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help! (en-US)
Característica | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Soporte básico | 7.0 | 4.0 (2) | 10 | 11.6 | 5.1 |
Característica | Android | Chrome para Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Soporte básico | 4.0 | (Yes) | 4.0 (2) | 10 | 11.6 | 4.2 |