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

Join MDN and developers like you at Mozilla's View Source conference, November 2-4 in Portland, Oregon. Learn more at https://viewsourceconf.org/.

DataView.prototype.byteOffset

by 1 contributor:

This article is in need of an editorial review.

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

概要

ArrayBufferの開始からこのビューの(バイト単位の)オフセットを表します。

構文

dataview.byteOffset

説明

byteOffsetプロパティはsetアクセス関数が undefinedであるアクセスプロパティです。これは、このプロパティが読み取り専用であることを意味します。その値は、DataViewが構築されるときに設定され、変更されません。

例

byteOffset プロパティを使う

var buffer = new ArrayBuffer(8);
var dataview = new DataView(buffer);
dataview.byteOffset; // 0 (no offset specified)

var dataview2 = new DataView(buffer, 3);
dataview2.byteOffset; // 3 (as specified when constructing the DataView)

仕様

仕様 状況 コメント
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'DataView.prototype.byteOffset' in that specification.
Standard 初期定義。

ブラウザ実装状況

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari
基本サポート 9.0 15.0 (15.0) 10 12.1 5.1
機能 Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
基本サポート 4.0 (有) 15.0 (15) ? 12.0 4.2

関連情報

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

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