ArrayBuffer.prototype.constructor - {___a:::8942:::ArrayBuffer___}を返す
ArrayBuffer.prototype.constructorはコンストラクタのArrayBufferを返すプロパティです。
概要
デモ
ArrayBuffer.prototype.constructorのデモです。
<!-- このコードは編集できます。 -->
<!DOCTYPE html>
<html>
<head>
<style>
body {
white-space: pre-wrap ;
}
</style>
</head>
<body>
<script>
/** try it! **/
var a = ArrayBuffer.prototype.constructor ;
/** try it! **/
var results = { a:a, } ;
for( var name in results ) {
console.log( name, results[name] ) ;
document.body.appendChild( new Text( name + " = " + results[name] + "\n" ) ) ;
}
</script>
</body>
</html>
サポート状況
Chrome | Firefox | Safari | Edge | IE | Opera | iOS Safari | Android |
---|---|---|---|---|---|---|---|
● | ● | ● 7.1+ | ● | ● 10+ | ● 11.6+ | ● 8.3+ | ● 4.0+ |
関連記事
- ArrayBuffer.prototype.byteLength
- ArrayBuffer.prototype.byteLengthは、オブジェクトが確保しているバッファの、Byte単位のサイズを返すプロパティです。
- ArrayBuffer.prototype.slice()
- ArrayBuffer.prototype.slice()は、ArrayBufferの指定した部分を切り取って、新しいArrayBufferを作成するメソッドです。元のArrayBufferに変更はありません。引数に0を指定すれば、丸々コピーできます。
- ArrayBuffer
- ArrayBufferは固定長のバイナリデータを取り扱うための、物理メモリ領域(バッファ)を確保する機能を備えたオブジェクトです。
- ArrayBuffer.isView()
- ArrayBuffer.isView()は、引数の値がArrayBufferView(ビュー)か否かを確認するメソッドです。ArrayBufferViewとは、ArrayBufferのバイナリデータに入出力をするためのオブジェクトです。具体的には、引数がDataView、またはTypedArrayならtrue、それ以外なら、falseを返します。