4 writes to _index
Microsoft.AspNetCore.DataProtection (4)
src\Shared\PooledArrayBufferWriter.cs (4)
20_index = 0; 31_index = 0; 96_index = 0; 151_index += count;
14 references to _index
Microsoft.AspNetCore.DataProtection (14)
src\Shared\PooledArrayBufferWriter.cs (14)
42return _rentedBuffer.AsSpan(0, _index); 51return _rentedBuffer.AsMemory(0, _index); 60return _index; 80return _rentedBuffer.Length - _index; 95_rentedBuffer.AsSpan(0, _index).Clear(); 146if (_index > _rentedBuffer.Length - count) 159return _rentedBuffer.AsMemory(_index); 167return _rentedBuffer.AsSpan(_index); 184var availableSpace = _rentedBuffer.Length - _index; 196Debug.Assert(oldBuffer.Length >= _index); 197Debug.Assert(_rentedBuffer.Length >= _index); 199var previousBuffer = oldBuffer.AsSpan(0, _index); 205Debug.Assert(_rentedBuffer.Length - _index > 0); 206Debug.Assert(_rentedBuffer.Length - _index >= sizeHint);