|
31 | 31 | <Docs> |
32 | 32 | <summary>Contains generic, low-level functionality for manipulating managed and unmanaged pointers.</summary> |
33 | 33 | <remarks> |
34 | | - <format type="text/markdown"><![CDATA[ |
| 34 | + <format type="text/markdown"><![CDATA[ |
35 | 35 |
|
36 | 36 | ## Remarks |
37 | 37 |
|
@@ -135,7 +135,7 @@ Since the `Unsafe` APIs suppress typical type-safety validation, it is up to cal |
135 | 135 | <summary>Adds an element offset to the given unmanaged pointer.</summary> |
136 | 136 | <returns>A new unmanaged pointer that reflects the addition of the specified offset to the source pointer.</returns> |
137 | 137 | <remarks> |
138 | | - <format type="text/markdown"><![CDATA[ |
| 138 | + <format type="text/markdown"><![CDATA[ |
139 | 139 |
|
140 | 140 | ## Remarks |
141 | 141 |
|
@@ -187,7 +187,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller |
187 | 187 | <summary>Adds an offset to the given managed pointer.</summary> |
188 | 188 | <returns>A new managed pointer that reflects the addition of the specified offset to the source pointer.</returns> |
189 | 189 | <remarks> |
190 | | - <format type="text/markdown"><![CDATA[ |
| 190 | + <format type="text/markdown"><![CDATA[ |
191 | 191 |
|
192 | 192 | ## Remarks |
193 | 193 |
|
@@ -238,7 +238,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller |
238 | 238 | <summary>Adds an element offset to the given managed pointer.</summary> |
239 | 239 | <returns>A new managed pointer that reflects the addition of the specified offset to the source pointer.</returns> |
240 | 240 | <remarks> |
241 | | - <format type="text/markdown"><![CDATA[ |
| 241 | + <format type="text/markdown"><![CDATA[ |
242 | 242 |
|
243 | 243 | ## Remarks |
244 | 244 |
|
@@ -298,7 +298,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller |
298 | 298 | <summary>Adds an element offset to the given managed pointer.</summary> |
299 | 299 | <returns>A new managed pointer that reflects the addition of the specified offset to the source pointer.</returns> |
300 | 300 | <remarks> |
301 | | - <format type="text/markdown"><![CDATA[ |
| 301 | + <format type="text/markdown"><![CDATA[ |
302 | 302 |
|
303 | 303 | ## Remarks |
304 | 304 |
|
@@ -349,7 +349,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller |
349 | 349 | <summary>Adds a byte offset to the given managed pointer.</summary> |
350 | 350 | <returns>A new managed pointer that reflects the addition of the specified byte offset to the source pointer.</returns> |
351 | 351 | <remarks> |
352 | | - <format type="text/markdown"><![CDATA[ |
| 352 | + <format type="text/markdown"><![CDATA[ |
353 | 353 |
|
354 | 354 | ## Remarks |
355 | 355 |
|
@@ -409,7 +409,7 @@ If `byteOffset` is a calculated value rather than a hardcoded literal, callers s |
409 | 409 | <summary>Adds a byte offset to the given managed pointer.</summary> |
410 | 410 | <returns>A new managed pointer that reflects the addition of the specified byte offset to the source pointer.</returns> |
411 | 411 | <remarks> |
412 | | - <format type="text/markdown"><![CDATA[ |
| 412 | + <format type="text/markdown"><![CDATA[ |
413 | 413 |
|
414 | 414 | ## Remarks |
415 | 415 |
|
@@ -739,7 +739,7 @@ The caller is responsible for ensuring that the resulting managed pointer is pro |
739 | 739 | </Docs> |
740 | 740 | </Member> |
741 | 741 | <Member MemberName="AsRef<T>"> |
742 | | - <MemberSignature Language="C#" Value="public static ref T AsRef<T> (in T source);" /> |
| 742 | + <MemberSignature Language="C#" Value="public static ref T AsRef<T> (scoped in T source);" /> |
743 | 743 | <MemberSignature Language="ILAsm" Value=".method public static hidebysig !!T AsRef<T>([in]!!T& source) cil managed" /> |
744 | 744 | <MemberSignature Language="DocId" Value="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(``0@)" /> |
745 | 745 | <MemberSignature Language="VB.NET" Value="Public Shared Function AsRef(Of T) (ByRef source As T) As T" /> |
@@ -1912,13 +1912,13 @@ public static MyUnionStruct MyMethod() { |
1912 | 1912 | value.SomeIntField = 42; |
1913 | 1913 | return value; // CS0165: Use of unassigned local variable 'value' |
1914 | 1914 | } |
1915 | | - |
| 1915 | +
|
1916 | 1916 | [StructLayout(LayoutKind.Explicit)] |
1917 | 1917 | public struct MyUnionStruct |
1918 | 1918 | { |
1919 | 1919 | [FieldOffset(0)] |
1920 | 1920 | public int SomeIntField; |
1921 | | - |
| 1921 | +
|
1922 | 1922 | [FieldOffset(0)] |
1923 | 1923 | public byte SomeByteField; |
1924 | 1924 | } |
@@ -2002,7 +2002,7 @@ public static MyUnionStruct MyMethod() { |
2002 | 2002 | <summary>Subtracts an element offset from the given unmanaged pointer.</summary> |
2003 | 2003 | <returns>A new unmanaged pointer that reflects the subtraction of the specified offset from the source pointer.</returns> |
2004 | 2004 | <remarks> |
2005 | | - <format type="text/markdown"><![CDATA[ |
| 2005 | + <format type="text/markdown"><![CDATA[ |
2006 | 2006 |
|
2007 | 2007 | ## Remarks |
2008 | 2008 |
|
@@ -2054,7 +2054,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller |
2054 | 2054 | <summary>Subtracts an offset from the given managed pointer.</summary> |
2055 | 2055 | <returns>A new managed pointer that reflects the subtraction of the specified offset from the source pointer.</returns> |
2056 | 2056 | <remarks> |
2057 | | - <format type="text/markdown"><![CDATA[ |
| 2057 | + <format type="text/markdown"><![CDATA[ |
2058 | 2058 |
|
2059 | 2059 | ## Remarks |
2060 | 2060 |
|
@@ -2105,7 +2105,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller |
2105 | 2105 | <summary>Subtracts an element offset from the given managed pointer.</summary> |
2106 | 2106 | <returns>A new managed pointer that reflects the subtraction of the specified offset from the source pointer.</returns> |
2107 | 2107 | <remarks> |
2108 | | - <format type="text/markdown"><![CDATA[ |
| 2108 | + <format type="text/markdown"><![CDATA[ |
2109 | 2109 |
|
2110 | 2110 | ## Remarks |
2111 | 2111 |
|
@@ -2165,7 +2165,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller |
2165 | 2165 | <summary>Subtracts an element offset from the given managed pointer.</summary> |
2166 | 2166 | <returns>A new managed pointer that reflects the subtraction of the specified offset from the source pointer.</returns> |
2167 | 2167 | <remarks> |
2168 | | - <format type="text/markdown"><![CDATA[ |
| 2168 | + <format type="text/markdown"><![CDATA[ |
2169 | 2169 |
|
2170 | 2170 | ## Remarks |
2171 | 2171 |
|
@@ -2216,7 +2216,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller |
2216 | 2216 | <summary>Subtracts a byte offset from the given managed pointer.</summary> |
2217 | 2217 | <returns>A new managed pointer that reflects the subtraction of the specified byte offset from the source pointer.</returns> |
2218 | 2218 | <remarks> |
2219 | | - <format type="text/markdown"><![CDATA[ |
| 2219 | + <format type="text/markdown"><![CDATA[ |
2220 | 2220 |
|
2221 | 2221 | ## Remarks |
2222 | 2222 |
|
@@ -2276,7 +2276,7 @@ If `byteOffset` is a calculated value rather than a hardcoded literal, callers s |
2276 | 2276 | <summary>Subtracts a byte offset from the given managed pointer.</summary> |
2277 | 2277 | <returns>A new managed pointer that reflects the subtraction of the specified byte offset from the source pointer.</returns> |
2278 | 2278 | <remarks> |
2279 | | - <format type="text/markdown"><![CDATA[ |
| 2279 | + <format type="text/markdown"><![CDATA[ |
2280 | 2280 |
|
2281 | 2281 | ## Remarks |
2282 | 2282 |
|
|
0 commit comments