★ wanayoo — archive 1999 https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/bufferNouvelle recherche | Portail wanayoo

TypedArray.prototype.buffer

by 1 contributor:

This article is in need of an editorial review.

This translation is incomplete. Please help translate this article from English.

概要

コンストラクタ時にTypedArrayよって参照されるArrayBufferを表します。

構文

typedArray.buffer

説明

bufferプロパティはsetアクセス関数はundefinedであるアクセスプロパティです。これは、このプロパティを読み込むことできることを意味します。その値はTypedArrayが構築されるとき設定され変更されません。TypedArrayはTypedArray objectsの一つです。

例

bufferプロパティを使う

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

仕様

仕様 ステータス コメント
ECMAScript 6 (ECMA-262)
The definition of 'TypedArray.prototype.buffer' in that specification.
勧告候補 Initial definition.

ブラウザ実装状況

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari
基本サポート 7.0 4.0 (2) 10 11.6 5.1
機能 Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
基本サポート 4.0 (有) 4.0 (2) 10 11.6 4.2

関連情報

ドキュメントのタグと貢献者

Contributors to this page: shide55
最終更新者: shide55,
サイドバーを隠す