5 writes to _count
System.Text.Json (5)
System\Text\Json\Serialization\ReadBufferState.cs (5)
47
_maxCount =
_count
= _offset = 0;
87
bufferState.
_count
+= bytesRead;
117
_count
+= bytesRead;
132
_count
-= bytesConsumed;
179
_count
-= JsonConstants.Utf8Bom.Length;
14 references to _count
System.Text.Json (14)
System\Text\Json\Serialization\ReadBufferState.cs (14)
54
public readonly ReadOnlySpan<byte> Bytes => _buffer.AsSpan(_offset,
_count
);
75
bufferState._buffer.AsMemory(bufferState.
_count
),
89
while (bufferState.
_count
< minBufferCount);
106
_buffer.AsSpan(
_count
));
119
while (
_count
< _buffer.Length);
129
Debug.Assert(bytesConsumed <=
_count
);
137
if ((uint)
_count
> ((uint)_buffer.Length / 2))
145
Buffer.BlockCopy(oldBuffer, _offset + bytesConsumed, newBuffer, 0,
_count
);
147
_maxCount =
_count
;
153
else if (
_count
!= 0)
156
Buffer.BlockCopy(_buffer, _offset + bytesConsumed, _buffer, 0,
_count
);
165
if (
_count
> _maxCount)
167
_maxCount =
_count
;
176
if (_buffer.AsSpan(0,
_count
).StartsWith(JsonConstants.Utf8Bom))