4 writes to _index
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
src\Shared\PooledArrayBufferWriter.cs (4)
20_index = 0; 28_index = 0; 83_index = 0; 123_index += count;
13 references to _index
Microsoft.AspNetCore.Mvc.ViewFeatures (13)
src\Shared\PooledArrayBufferWriter.cs (13)
37return _rentedBuffer.AsMemory(0, _index); 47return _index; 67return _rentedBuffer.Length - _index; 82_rentedBuffer.AsSpan(0, _index).Clear(); 118if (_index > _rentedBuffer.Length - count) 131return _rentedBuffer.AsMemory(_index); 139return _rentedBuffer.AsSpan(_index); 153var availableSpace = _rentedBuffer.Length - _index; 165Debug.Assert(oldBuffer.Length >= _index); 166Debug.Assert(_rentedBuffer.Length >= _index); 168var previousBuffer = oldBuffer.AsSpan(0, _index); 174Debug.Assert(_rentedBuffer.Length - _index > 0); 175Debug.Assert(_rentedBuffer.Length - _index >= sizeHint);