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)
44
return _rentedBuffer.AsMemory(0,
_index
);
54
return
_index
;
74
return _rentedBuffer.Length -
_index
;
89
_rentedBuffer.AsSpan(0,
_index
).Clear();
128
if (
_index
> _rentedBuffer.Length - count)
148
return _rentedBuffer.AsMemory(
_index
);
156
return _rentedBuffer.AsSpan(
_index
);
170
var availableSpace = _rentedBuffer!.Length -
_index
;
182
Debug.Assert(oldBuffer.Length >=
_index
);
183
Debug.Assert(_rentedBuffer.Length >=
_index
);
185
var previousBuffer = oldBuffer.AsSpan(0,
_index
);
191
Debug.Assert(_rentedBuffer.Length -
_index
> 0);
192
Debug.Assert(_rentedBuffer.Length -
_index
>= sizeHint);