2 writes to _rentedBuffer
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
src\Shared\RentedSpan\RentedSpan.cs (2)
57
_rentedBuffer
= ArrayPool<T>.Shared.Rent(length);
61
_rentedBuffer
= null;
5 references to _rentedBuffer
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
src\Shared\RentedSpan\RentedSpan.cs (5)
79
if (
_rentedBuffer
!= null)
81
ArrayPool<T>.Shared.Return(
_rentedBuffer
);
93
public Span<T> Span =>
_rentedBuffer
!= null ?
_rentedBuffer
.AsSpan(0, _length) : default;
98
public bool Rented =>
_rentedBuffer
!= null;