Movatterモバイル変換


[0]ホーム

URL:


  1. 개발자를 위한 웹 기술
  2. JavaScript
  3. JavaScript 참고서
  4. 표준 내장 객체
  5. TypedArray
  6. TypedArray.prototype.byteOffset

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

View in EnglishAlways switch to English

TypedArray.prototype.byteOffset

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2015년 7월⁩.

TypedArray 인스턴스의byteOffset 접근자 속성은 이 형식화 배열의ArrayBuffer 혹은SharedArrayBuffer 시작점에서의 바이트 단위 오프셋을 반환합니다.

설명

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® 2026 Language Specification
# sec-get-%typedarray%.prototype.byteoffset

브라우저 호환성

같이 보기

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp