Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
DataView 인스턴스의 getUint16() 메서드는 이 DataView의 지정된 바이트 오프셋에서 2바이트를 읽고 이를 16비트 부호 없는 정수로 해석합니다. 정렬 제약 조건은 없으며, 범위 내의 모든 오프셋에서 멀티바이트 값을 가져올 수 있습니다.
데이터를 읽을 뷰의 시작 부분으로부터의 오프셋(바이트 단위)입니다.
littleEndian Optional리틀 엔디언 혹은 빅 엔디언 형식으로 저장되는지 여부를 나타냅니다. 만약 false 혹은 undefined라면 빅 엔디언 값을 읽습니다.
0 이상 65535 이하의 정수
뷰의 끝을 넘어 읽는 수도 있는 byteOffset이 설정된 경우 발생합니다.
| ECMAScript® 2027 Language Specification # sec-dataview.prototype.getuint16 |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.