4 writes to _rentedBuffer
Microsoft.AspNetCore.WebUtilities (4)
FileBufferingReadStream.cs (4)
82
_rentedBuffer
= bytePool.Rent(memoryThreshold);
134
_rentedBuffer
= bytePool.Rent(memoryThreshold);
303
_rentedBuffer
= null;
379
_rentedBuffer
= null;
12 references to _rentedBuffer
Microsoft.AspNetCore.WebUtilities (12)
FileBufferingReadStream.cs (12)
83
_buffer = new MemoryStream(
_rentedBuffer
);
135
_buffer = new MemoryStream(
_rentedBuffer
);
280
if (
_rentedBuffer
== null)
301
_buffer.Write(
_rentedBuffer
.AsSpan(0, (int)oldBuffer.Length));
302
_bytePool.Return(
_rentedBuffer
);
356
if (
_rentedBuffer
== null)
377
await _buffer.WriteAsync(
_rentedBuffer
.AsMemory(0, (int)oldBuffer.Length), cancellationToken);
378
_bytePool.Return(
_rentedBuffer
);
471
if (
_rentedBuffer
!= null)
473
_bytePool.Return(
_rentedBuffer
);
489
if (
_rentedBuffer
!= null)
491
_bytePool.Return(
_rentedBuffer
);