Skip to content

Commit be33374

Browse files
authored
Editorial: use new Web IDL primitives for Uint8Array writing
1 parent b74cc91 commit be33374

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

encoding.bs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,10 +1572,6 @@ method steps are:
15721572

15731573
<li><p>Let <var>written</var> be 0.
15741574

1575-
<li><p>Let <var>destinationBytes</var> be the result of
1576-
<a lt="get a reference to the buffer source">getting a reference to the bytes held by</a>
1577-
<var>destination</var>.
1578-
15791575
<li><p>Let <var>encoder</var> be an instance of the <a>UTF-8 encoder</a>.
15801576

15811577
<li>
@@ -1603,7 +1599,7 @@ method steps are:
16031599

16041600
<ol>
16051601
<li>
1606-
<p>If <var>destinationBytes</var>'s <a for="byte sequence">length</a> &minus;
1602+
<p>If <var>destination</var>'s <a for="BufferSource">byte length</a> &minus;
16071603
<var>written</var> is greater than or equal to the number of bytes in <var>result</var>, then:
16081604

16091605
<ol>
@@ -1612,7 +1608,8 @@ method steps are:
16121608
<li><p>Otherwise, increment <var>read</var> by 1.
16131609

16141610
<li>
1615-
<p>Write the bytes in <var>result</var> into <var>destinationBytes</var>, from byte offset
1611+
<p><a for="ArrayBufferView">Write</a> the bytes in <var>result</var> into
1612+
<var>destination</var>, with <a for="ArrayBufferView/write"><i>startingOffset</i></a> set to
16161613
<var>written</var>.
16171614

16181615
<p class=warning>See the

0 commit comments

Comments
 (0)