Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypedArray のプロパティの記事を更新 #16905

Merged
merged 6 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: get TypedArray[@@species]
title: TypedArray[@@species]
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/@@species
l10n:
sourceCommit: 194d3e00cb93a6e5ea44812548f4131cb17f0381
sourceCommit: bf81c9ed7de8cfd94cf1fc7f77e23b987f753a8b
---

{{JSRef}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ l10n:

{{JSRef}}

**`buffer`** アクセサープロパティは、構築時に _TypedArray_ から参照されるようになった {{jsxref("ArrayBuffer")}} を表します
**`buffer`** は {{jsxref("TypedArray")}} インスタンスのアクセサープロパティで、構築時点にこの型付き配列が参照する {{jsxref("ArrayBuffer")}} または {{jsxref("SharedArrayBuffer")}} を返します

{{EmbedInteractiveExample("pages/js/typedarray-buffer.html","shorter")}}
{{EmbedInteractiveExample("pages/js/typedarray-buffer.html", "shorter")}}

## 解説

Expand Down Expand Up @@ -47,5 +47,5 @@ console.log(arr.buffer === buffer); // true

## 関連情報

- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Typed_arrays)
- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Guide/Typed_arrays)
- {{jsxref("TypedArray")}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title: TypedArray.prototype.byteLength
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength
l10n:
sourceCommit: 194d3e00cb93a6e5ea44812548f4131cb17f0381
sourceCommit: c2445ce1dc3a0170e2fbfdbee10e18a7455c2282
---

{{JSRef}}

**`byteLength`** アクセサープロパティは、型付き配列の長さを(バイト単位で)表します
**`byteLength`** は {{jsxref("TypedArray")}} のアクセサープロパティで、この型付き配列の長さを(バイト単位で)返します

{{EmbedInteractiveExample("pages/js/typedarray-bytelength.html","shorter")}}
{{EmbedInteractiveExample("pages/js/typedarray-bytelength.html", "shorter")}}

## 解説

Expand Down Expand Up @@ -42,5 +42,5 @@ uint8offSet.byteLength; // 6 (due to the offset of the constructed Uint8Array)

## 関連情報

- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Typed_arrays)
- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Guide/Typed_arrays)
- {{jsxref("TypedArray")}}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ l10n:

{{JSRef}}

**`byteOffset`** アクセサープロパティは、 {{jsxref("ArrayBuffer")}} の開始位置からの型付き配列の (バイト単位の) オフセットを表します
**`byteOffset`** は {{jsxref("TypedArray")}} インスタンスのアクセサープロパティで、この型付き配列の {{jsxref("ArrayBuffer")}} または {{jsxref("SharedArrayBuffer")}} の開始位置からの(バイト単位の)オフセットを返します

## 解説

Expand Down Expand Up @@ -37,5 +37,5 @@ uint8array2.byteOffset; // 3 (as specified when constructing Uint8Array)

## 関連情報

- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Typed_arrays)
- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Guide/Typed_arrays)
- {{jsxref("TypedArray")}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title: TypedArray.BYTES_PER_ELEMENT
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/BYTES_PER_ELEMENT
l10n:
sourceCommit: 194d3e00cb93a6e5ea44812548f4131cb17f0381
sourceCommit: c2445ce1dc3a0170e2fbfdbee10e18a7455c2282
---

{{JSRef}}

**`TypedArray.BYTES_PER_ELEMENT`** プロパティは、型付き配列内の各要素の大きさをバイト単位で表します。

{{EmbedInteractiveExample("pages/js/typedarray-bytes-per-element.html","shorter")}}
{{EmbedInteractiveExample("pages/js/typedarray-bytes-per-element.html", "shorter")}}

## 値

Expand Down Expand Up @@ -75,5 +75,5 @@ new BigUint64Array([]).BYTES_PER_ELEMENT; // 8

## 関連情報

- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Typed_arrays)
- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Guide/Typed_arrays)
- {{jsxref("TypedArray")}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title: TypedArray.prototype.length
slug: Web/JavaScript/Reference/Global_Objects/TypedArray/length
l10n:
sourceCommit: 194d3e00cb93a6e5ea44812548f4131cb17f0381
sourceCommit: c2445ce1dc3a0170e2fbfdbee10e18a7455c2282
---

{{JSRef}}

**`length`** アクセサープロパティは、型付き配列の長さを(要素数で)表します
**`length`** は {{jsxref("TypedArray")}} インスタンスのアクセサープロパティで、型付き配列の長さを(要素数で)返します

{{EmbedInteractiveExample("pages/js/typedarray-length.html","shorter")}}
{{EmbedInteractiveExample("pages/js/typedarray-length.html", "shorter")}}

## 解説

Expand Down Expand Up @@ -42,5 +42,5 @@ uint8.length; // 6 (構築された Uint8Array のオフセットによる)

## 関連情報

- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Typed_arrays)
- [JavaScript の型付き配列](/ja/docs/Web/JavaScript/Guide/Typed_arrays)
- {{jsxref("TypedArray")}}