10 writes to _byteCount
System.Private.DataContractSerialization (10)
System\Xml\EncodingStreamWrapper.cs (10)
94_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count, _bytes, 0); 224_byteCount = preserve; 285_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 305_byteCount = 0; 601_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 612_byteCount = Encoding.UTF8.GetBytes(_chars, 0, charCount, _bytes, 0); 622_byteCount -= count; 645_byteCount++; 666_byteCount += 2; 702_byteCount = _enc!.GetBytes(_chars, 0, charCount, _bytes, 0, false);
15 references to _byteCount
System.Private.DataContractSerialization (15)
System\Xml\EncodingStreamWrapper.cs (15)
83CheckUTF8DeclarationEncoding(_bytes, _byteOffset, _byteCount, declEnc, expectedEnc); 92int count = _encoding.GetChars(_bytes, _byteOffset, _byteCount, _chars, 0); 99CheckUTF8DeclarationEncoding(_bytes, 0, _byteCount, declEnc, expectedEnc); 282count -= _byteCount; 285_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 577if (_byteCount == 0 && _encodingCode == SupportedEncoding.UTF8) 591if (_byteCount == 0) 601_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 604if (_byteCount == 0) 611int charCount = _encoding!.GetChars(_bytes, 0, _byteCount, _chars, 0); 617if (_byteCount < count) 618count = _byteCount; 635int max = _byteOffset + _byteCount; 638if ((_byteCount % 2) != 0) 703_stream.Write(_bytes, 0, _byteCount);