buffer
접근자(accessor) 속성(property)은 생성 시간에 TypedArray에 의해 참조되는 ArrayBuffer
를 나타냅니다.
구문
typedArray.buffer
설명
buffer
속성은 set 접근자 함수가 undefined
인 접근자 속성입니다, 이 속성을 읽을 수만 있음을 뜻하는. 그 값은 TypedArray가 만들어질 때 수립되어 변경될 수 없습니다. TypedArray는 TypedArray 객체 유형 중 하나입니다.
예
buffer
속성 사용
var buffer = new ArrayBuffer(8); var uint16 = new Uint16Array(buffer); uint16.buffer; // ArrayBuffer { byteLength: 8 }
스펙
브라우저 호환성
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 7.0 | 4.0 (2) | 10 | 11.6 | 5.1 |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | 4.0 | (Yes) | 4.0 (2) | 10 | 11.6 | 4.2 |