4 writes to _index
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
PooledArrayBufferWriter`1.cs (4)
27_index = 0; 35_index = 0; 90_index = 0; 133_index += count;
13 references to _index
Microsoft.AspNetCore.Razor.Utilities.Shared (13)
PooledArrayBufferWriter`1.cs (13)
44return _rentedBuffer.AsMemory(0, _index); 54return _index; 74return _rentedBuffer.Length - _index; 89_rentedBuffer.AsSpan(0, _index).Clear(); 128if (_index > _rentedBuffer.Length - count) 148return _rentedBuffer.AsMemory(_index); 156return _rentedBuffer.AsSpan(_index); 170var availableSpace = _rentedBuffer!.Length - _index; 182Debug.Assert(oldBuffer.Length >= _index); 183Debug.Assert(_rentedBuffer.Length >= _index); 185var previousBuffer = oldBuffer.AsSpan(0, _index); 191Debug.Assert(_rentedBuffer.Length - _index > 0); 192Debug.Assert(_rentedBuffer.Length - _index >= sizeHint);