4 writes to _index
Microsoft.Extensions.Logging.Console (4)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (4)
43
_index
= 0;
109
_index
= 0;
132
_index
= 0;
142
_index
+= count;
17 references to _index
Microsoft.Extensions.Logging.Console (17)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (17)
56
Debug.Assert(
_index
<= _rentedBuffer.Length);
57
return _rentedBuffer.AsMemory(0,
_index
);
66
return
_index
;
84
return _rentedBuffer.Length -
_index
;
106
Debug.Assert(
_index
<= _rentedBuffer.Length);
108
_rentedBuffer.AsSpan(0,
_index
).Clear();
141
Debug.Assert(
_index
<= _rentedBuffer.Length - count);
148
return _rentedBuffer.AsMemory(
_index
);
154
return _rentedBuffer.AsSpan(
_index
);
176
int availableSpace = currentLength -
_index
;
180
if (
_index
>= MaximumBufferSize / 2)
204
Debug.Assert(oldBuffer.Length >=
_index
);
205
Debug.Assert(_rentedBuffer.Length >=
_index
);
207
Span<byte> oldBufferAsSpan = oldBuffer.AsSpan(0,
_index
);
213
Debug.Assert(_rentedBuffer.Length -
_index
> 0);
214
Debug.Assert(_rentedBuffer.Length -
_index
>= sizeHint);
232
public override long UnflushedBytes =>
_index
;