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)
37
return _rentedBuffer.AsMemory(0,
_index
);
47
return
_index
;
67
return _rentedBuffer.Length -
_index
;
82
_rentedBuffer.AsSpan(0,
_index
).Clear();
118
if (
_index
> _rentedBuffer.Length - count)
131
return _rentedBuffer.AsMemory(
_index
);
139
return _rentedBuffer.AsSpan(
_index
);
153
var availableSpace = _rentedBuffer.Length -
_index
;
165
Debug.Assert(oldBuffer.Length >=
_index
);
166
Debug.Assert(_rentedBuffer.Length >=
_index
);
168
var previousBuffer = oldBuffer.AsSpan(0,
_index
);
174
Debug.Assert(_rentedBuffer.Length -
_index
> 0);
175
Debug.Assert(_rentedBuffer.Length -
_index
>= sizeHint);