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)
42
return _rentedBuffer.AsSpan(0,
_index
);
51
return _rentedBuffer.AsMemory(0,
_index
);
60
return
_index
;
80
return _rentedBuffer.Length -
_index
;
95
_rentedBuffer.AsSpan(0,
_index
).Clear();
146
if (
_index
> _rentedBuffer.Length - count)
159
return _rentedBuffer.AsMemory(
_index
);
167
return _rentedBuffer.AsSpan(
_index
);
184
var availableSpace = _rentedBuffer.Length -
_index
;
196
Debug.Assert(oldBuffer.Length >=
_index
);
197
Debug.Assert(_rentedBuffer.Length >=
_index
);
199
var previousBuffer = oldBuffer.AsSpan(0,
_index
);
205
Debug.Assert(_rentedBuffer.Length -
_index
> 0);
206
Debug.Assert(_rentedBuffer.Length -
_index
>= sizeHint);