바이트 길이 SharedArrayBuffer의 속성은 SharedArrayBuffer의 크기/길이를 지정하는 부호 없는 32비트 정수를 반환합니다.
구문
구문은 다음과 같습니다.
sharedArrayBuffer.byteLength
예시
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var sharedArrayBuffer = new SharedArrayBuffer(8);
var result = sharedArrayBuffer.byteLength;
document.write("length of the shared array buffer is: " + result);
</script>
</body>
</html>
출력
length of the shared array buffer is: 8