10 writes to _byteCount
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (10)
182_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 195_byteCount = Encoding.UTF8.GetBytes(_chars, 0, charCount, _bytes, 0); 207_byteCount -= count; 261_byteCount = _enc!.GetBytes(_chars, 0, charCount, _bytes, 0, false); 390_byteCount++; 413_byteCount += 2; 435_byteCount = 0; 445_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 473_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count, _bytes, 0); 516_byteCount = preserve;
13 references to _byteCount
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (13)
171if (_byteCount == 0) 182_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 185if (_byteCount == 0) 194int charCount = _encoding!.GetChars(_bytes, 0, _byteCount, _chars, 0); 200if (_byteCount < count) 202count = _byteCount; 218if (_byteCount == 0 && _encodingCode == SupportedEncoding.UTF8) 262_stream.Write(_bytes, 0, _byteCount); 378int max = _byteOffset + _byteCount; 381if ((_byteCount % 2) != 0) 442count -= _byteCount; 445_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 471int count = _encoding.GetChars(_bytes, _byteOffset, _byteCount, _chars, 0);