[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer [Back]  [Original]

TypedArray.prototype.buffer - JavaScript | MDN

Esta pgina ha sido traducida del ingls por la comunidad. Aprende ms y nete a la comunidad de MDN Web Docs.

View in English Always switch to English

TypedArray.prototype.buffer

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since julio de 2015.

La propiedad de acceso buffer representa el ArrayBuffer referenciada por un TypedArray en tiempo de construccin.

In this article

Sintaxis

typedArray.buffer

Descripcin

La propiedad buffer es una propiedad de acceso cuya funcin set accessor es undefined, significa que tu slo 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

js
var buffer = new ArrayBuffer(8);
var uint16 = new Uint16Array(buffer);
uint16.buffer; // ArrayBuffer { byteLength: 8 }

Especificaciones

Specification
ECMAScript 2027 LanguageSpecification
# sec-get-%typedarray%.prototype.buffer

Compatibilidad con navegadores

Vase tambin


Web Proxy Viewer  |  New URL  |  Original Page