You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Span<T>(Void*, Int32) length is number of T elements, not bytes (dotnet#2272)
* Span<T>(Void*, Int32) length is number of T elements, not bytes
* PR Feedback
Cf. dotnet#2272 (comment)
* Updated doc for ROSpan
Cf. dotnet#2272 (comment)
* Added space before />
Copy file name to clipboardExpand all lines: xml/System/ReadOnlySpan`1.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -102,9 +102,9 @@ A `ReadOnlySpan<T>` instance is often used to reference the elements of an array
102
102
<ParameterName="length"Type="System.Int32" />
103
103
</Parameters>
104
104
<Docs>
105
-
<paramname="pointer">A pointer to the starting address of a specified number of <paramrefname="T" /> objects in memory.</param>
106
-
<paramname="length">The number of <paramrefname="T" /> objects to be included.</param>
107
-
<summary>Creates a new <seecref="T:System.ReadOnlySpan`1" /> from a specified number of bytes starting at a specified memory address.</summary>
105
+
<paramname="pointer">A pointer to the starting address of a specified number of <typeparamrefname="T" /> elements in memory.</param>
106
+
<paramname="length">The number of <typeparamrefname="T" /> elements to be included in the <seecref="T:System.ReadOnlySpan`1" />.</param>
107
+
<summary>Creates a new <seecref="T:System.ReadOnlySpan`1" /> from a specified number of <typeparamrefname="T" /> elements starting at a specified memory address.</summary>
108
108
<remarks>
109
109
<formattype="text/markdown"><![CDATA[This constructor should be used with care, since it creates arbitrarily typed `T`s from a block of memory.]]></format>
Copy file name to clipboardExpand all lines: xml/System/Span`1.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -154,9 +154,9 @@ If `array` is `null`, this constructor returns a `null` `Span<T>`.
154
154
<ParameterName="length"Type="System.Int32" />
155
155
</Parameters>
156
156
<Docs>
157
-
<paramname="pointer">A pointer to the starting address of a specified number of bytes in memory.</param>
158
-
<paramname="length">The number of bytes to be included in the <seecref="T:System.Span`1" />.</param>
159
-
<summary>Creates a new <seecref="T:System.Span`1" /> object from a specified number of bytes starting at a specified memory address.</summary>
157
+
<paramname="pointer">A pointer to the starting address of a specified number of <typeparamrefname="T" /> elements in memory.</param>
158
+
<paramname="length">The number of <typeparamrefname="T" /> elements to be included in the <seecref="T:System.Span`1" />.</param>
159
+
<summary>Creates a new <seecref="T:System.Span`1" /> object from a specified number of <typeparamrefname="T" /> elements starting at a specified memory address.</summary>
0 commit comments