Skip to content

Commit 94ce3e2

Browse files
committed
Added missing attribute
1 parent 80f6501 commit 94ce3e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Microsoft.Toolkit.HighPerformance/Buffers/MemoryOwner{T}.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ public ref T DangerousGetReference()
220220
/// as the same array might be in use within another <see cref="MemoryOwner{T}"/> instance.
221221
/// </remarks>
222222
[Pure]
223+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
223224
public ArraySegment<T> DangerousGetArray()
224225
{
225226
T[]? array = this.array;

0 commit comments

Comments
 (0)