この記事は編集レビューを必要としています。ぜひご協力ください。
この翻訳は不完全です。英語から この記事を翻訳 してください。
概要
ArrayBuffer
の開始位置からのtyped arrayの(バイト単位の)オフセットを表します。
構文
typedarray.byteOffset
説明
byteOffset
プロパティはsetアクセス関数がundefined
であるアクセスプロパティです。これは、このプロパティを読み込むことのみできることを意味します。TypedArrayが構築されるときその値が設定され、変更されません。 TypedArrayはTypedArray objectsの一つです。
例
byteOffset
プロパティを使う
var buffer = new ArrayBuffer(8); var uint8 = new Uint8Array(buffer); uint8.byteOffset; // 0 (no offset specified) var uint8 = new Uint8Array(buffer, 3); uint8.byteOffset; // 3 (as specified when constructing Uint8Array)
仕様
仕様 | ステータス | コメント |
---|---|---|
ECMAScript 6 (ECMA-262) The definition of 'TypedArray.prototype.byteOffset' 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 |