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

TypedArray.prototype.byteOffset - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

TypedArray.prototype.byteOffset

Baseline Widely available

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

TypedArray byteOffset ArrayBuffer SharedArrayBuffer .

In this article

byteOffset undefined , . TypedArray . TypedArray TypedArray .

byteOffset

js
const buffer = new ArrayBuffer(8);

const uint8array1 = new Uint8Array(buffer);
uint8array1.byteOffset; // 0 (  )

const uint8array2 = new Uint8Array(buffer, 3);
uint8array2.byteOffset; // 3 (Uint8Array    )

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


Web Proxy Viewer  |  New URL  |  Original Page