12 writes to _byteCount
System.Private.DataContractSerialization (12)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (12)
185_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 198_byteCount = Encoding.UTF8.GetBytes(_chars, 0, charCount, _bytes, 0); 210_byteCount -= count; 264_byteCount = _enc!.GetBytes(_chars, 0, charCount, _bytes, 0, false); 366_byteCount++; 389_byteCount += 2; 411_byteCount = 0; 421_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 449_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count, _bytes, 0); 486_byteCount = 0; 492_byteCount = 1; 499_byteCount = 2;
13 references to _byteCount
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (13)
174if (_byteCount == 0) 185_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 188if (_byteCount == 0) 197int charCount = _encoding!.GetChars(_bytes, 0, _byteCount, _chars, 0); 203if (_byteCount < count) 205count = _byteCount; 221if (_byteCount == 0 && _encodingCode == SupportedEncoding.UTF8) 265_stream.Write(_bytes, 0, _byteCount); 354int max = _byteOffset + _byteCount; 357if ((_byteCount % 2) != 0) 418count -= _byteCount; 421_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 447int count = _encoding.GetChars(_bytes, _byteOffset, _byteCount, _chars, 0);