2 writes to _rentedBuffer
Microsoft.AspNetCore.DataProtection (2)
src\Shared\Buffers\RefPooledArrayBufferWriter.cs (2)
132_rentedBuffer = ArrayPool<T>.Shared.Rent(rentedInitialSize); 155_rentedBuffer = ArrayPool<T>.Shared.Rent(newSize);
13 references to _rentedBuffer
Microsoft.AspNetCore.DataProtection (13)
src\Shared\Buffers\RefPooledArrayBufferWriter.cs (13)
42if (_rentedBuffer is not null) 44ArrayPool<T>.Shared.Return(_rentedBuffer, clearArray: true); 125if (_rentedBuffer is null) 134_buffer.CopyTo(_rentedBuffer); 135_buffer = _rentedBuffer; 137Debug.Assert(_rentedBuffer.Length - _index > 0); 138Debug.Assert(_rentedBuffer.Length - _index >= sizeHint); 154var oldBuffer = _rentedBuffer; 158Debug.Assert(_rentedBuffer.Length >= _index); 161previousBuffer.CopyTo(_rentedBuffer); 164_buffer = _rentedBuffer; 166Debug.Assert(_rentedBuffer.Length - _index > 0); 167Debug.Assert(_rentedBuffer.Length - _index >= sizeHint);