Add missing [UnscopedRef] attribute to ArrayPoolBinaryWriter<T>

このコミットが含まれているのは:
Sergio Pedri committed 2022-09-16 10:38:38 -07:00
1 親 8b3f75431f
コミット 5da3da6707
1ファイル変更
+1
+1
ファイルの表示
@@ -101,6 +101,7 @@ internal ref struct ArrayPoolBufferWriter<T>
/// </summary>
/// <param name="sizeHint">The capacity to request.</param>
/// <returns>A <see cref="Span{T}"/> to write data to.</returns>
[UnscopedRef]
internal readonly Span<T> GetSpan(int sizeHint = 0)
{
CheckBufferAndEnsureCapacity(sizeHint);