Skip to content

Commit 6fe5f26

Browse files
ExE-Bossannevk
andauthored
Normative: Add BigInt64Array and BigUint64Array (#936)
Co-authored-by: Anne van Kesteren <[email protected]>
1 parent d04c4f9 commit 6fe5f26

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

index.bs

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5752,7 +5752,9 @@ The <dfn id="dfn-typed-array-type" export>typed array types</dfn> are
57525752
{{Uint16Array}},
57535753
{{Uint32Array}},
57545754
{{Uint8ClampedArray}},
5755-
{{Float32Array}} and
5755+
{{BigInt64Array}},
5756+
{{BigUint64Array}},
5757+
{{Float32Array}}, and
57565758
{{Float64Array}}.
57575759

57585760
The <dfn id="dfn-buffer-source-type" export>buffer source types</dfn>
@@ -6755,22 +6757,21 @@ data. The table below lists these types and the kind of buffer or view they rep
67556757
<tr><th>Type</th><th>Kind of buffer</th></tr>
67566758
<tr><td><dfn id="idl-ArrayBuffer" interface>ArrayBuffer</dfn></td><td>An object that holds a pointer (which may be null) to a buffer of a fixed number of bytes</td></tr>
67576759
<tr><td><dfn id="idl-DataView" interface>DataView</dfn></td><td>A view on to an {{ArrayBuffer}} that allows typed access to integers and floating point values stored at arbitrary offsets into the buffer</td></tr>
6758-
<tr><td>
6759-
<dfn id="idl-Int8Array" interface>Int8Array</dfn>,<br/>
6760+
<tr><td><dfn id="idl-Int8Array" interface>Int8Array</dfn>,<br/>
67606761
<dfn id="idl-Int16Array" interface>Int16Array</dfn>,<br/>
6761-
<dfn id="idl-Int32Array" interface>Int32Array</dfn></td>
6762-
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of two’s complement signed integers of the given size in bits</td></tr>
6763-
<tr><td>
6764-
<dfn id="idl-Uint8Array" interface>Uint8Array</dfn>,<br/>
6762+
<dfn id="idl-Int32Array" interface>Int32Array</dfn>,<br/>
6763+
<dfn id="idl-BigInt64Array" interface>BigInt64Array</dfn></td>
6764+
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of two’s complement signed integers of the given size in bits</td></tr>
6765+
<tr><td><dfn id="idl-Uint8Array" interface>Uint8Array</dfn>,<br/>
67656766
<dfn id="idl-Uint16Array" interface>Uint16Array</dfn>,<br/>
6766-
<dfn id="idl-Uint32Array" interface>Uint32Array</dfn></td>
6767-
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of unsigned integers of the given size in bits</td></tr>
6768-
<tr><td><dfn id="idl-Uint8ClampedArray" interface>Uint8ClampedArray</dfn></td>
6769-
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of unsigned 8 bit integers with clamped conversions</td></tr>
6770-
<tr><td>
6771-
<dfn id="idl-Float32Array" interface>Float32Array</dfn>,<br/>
6772-
<dfn id="idl-Float64Array" interface>Float64Array</dfn></td>
6773-
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of IEEE 754 floating point numbers of the given size in bits</td></tr>
6767+
<dfn id="idl-Uint32Array" interface>Uint32Array</dfn>,<br/>
6768+
<dfn id="idl-BigUint64Array" interface>BigUint64Array</dfn></td>
6769+
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of unsigned integers of the given size in bits</td></tr>
6770+
<tr><td><dfn id="idl-Uint8ClampedArray" interface>Uint8ClampedArray</dfn></td>
6771+
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of unsigned 8 bit integers with clamped conversions</td></tr>
6772+
<tr><td><dfn id="idl-Float32Array" interface>Float32Array</dfn>,<br/>
6773+
<dfn id="idl-Float64Array" interface>Float64Array</dfn></td>
6774+
<td>A view on to an {{ArrayBuffer}} that exposes it as an array of IEEE 754 floating point numbers of the given size in bits</td></tr>
67746775
</table>
67756776

67766777
Note: These types all correspond to classes defined in ECMAScript.
@@ -6795,6 +6796,8 @@ in [[#es-buffer-source-types]].
67956796
"Uint16Array"
67966797
"Uint32Array"
67976798
"Uint8ClampedArray"
6799+
"BigInt64Array"
6800+
"BigUint64Array"
67986801
"Float32Array"
67996802
"Float64Array"
68006803
</pre>
@@ -8935,6 +8938,8 @@ that unless the type is [=extended attributes associated with|associated with=]
89358938
{{Uint16Array}},
89368939
{{Uint32Array}},
89378940
{{Uint8ClampedArray}},
8941+
{{BigInt64Array}},
8942+
{{BigUint64Array}},
89388943
{{Float32Array}} or
89398944
{{Float64Array}} value
89408945
by running the following algorithm:
@@ -14547,6 +14552,7 @@ must support.
1454714552
<pre class="idl">
1454814553
typedef (Int8Array or Int16Array or Int32Array or
1454914554
Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or
14555+
BigInt64Array or BigUint64Array or
1455014556
Float32Array or Float64Array or DataView) ArrayBufferView;
1455114557
</pre>
1455214558

0 commit comments

Comments
 (0)