From da78a9e329e272dedb2400b79a3bdeebff387d47 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:17 -0500 Subject: initial commit --- .../arraybuffer/bytelength/index.html | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 files/ko/web/javascript/reference/global_objects/arraybuffer/bytelength/index.html (limited to 'files/ko/web/javascript/reference/global_objects/arraybuffer/bytelength') diff --git a/files/ko/web/javascript/reference/global_objects/arraybuffer/bytelength/index.html b/files/ko/web/javascript/reference/global_objects/arraybuffer/bytelength/index.html new file mode 100644 index 0000000000..b17502631a --- /dev/null +++ b/files/ko/web/javascript/reference/global_objects/arraybuffer/bytelength/index.html @@ -0,0 +1,57 @@ +--- +title: ArrayBuffer.prototype.byteLength +slug: Web/JavaScript/Reference/Global_Objects/ArrayBuffer/byteLength +tags: + - ArrayBuffer + - JavaScript + - Property + - Prototype + - Reference +translation_of: Web/JavaScript/Reference/Global_Objects/ArrayBuffer/byteLength +--- +
{{JSRef}}
+ +

byteLength 접근자 속성은 {{jsxref("ArrayBuffer")}}의 길이를 바이트 단위로 반환합니다.

+ +
{{EmbedInteractiveExample("pages/js/arraybuffer-bytelength.html")}}
+ + + +

구문

+ +
arraybuffer.byteLength
+ +

설명

+ +

byteLength 속성은 설정자 속성이 undefined인 접근자 속성으로, 오직 읽기만 가능합니다. byteLength는 배열 버퍼를 처음 생성할 때 정해지며 바꿀 수 없습니다. ArrayBuffer가 분리된 경우 0을 반환합니다.

+ +

예제

+ +
var buffer = new ArrayBuffer(8);
+buffer.byteLength; // 8
+
+ +

명세

+ + + + + + + + + + +
Specification
{{SpecName('ESDraft', '#sec-get-arraybuffer.prototype.bytelength', 'ArrayBuffer.prototype.byteLength')}}
+ +

브라우저 호환성

+ + + +

{{Compat("javascript.builtins.ArrayBuffer.byteLength")}}

+ +

같이 보기

+ + -- cgit v1.2.3-54-g00ecf