12 writes to _byteCount
System.Private.DataContractSerialization (12)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (12)
189_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 202_byteCount = Encoding.UTF8.GetBytes(_chars, 0, charCount, _bytes, 0); 214_byteCount -= count; 268_byteCount = _enc!.GetBytes(_chars, 0, charCount, _bytes, 0, false); 370_byteCount++; 393_byteCount += 2; 415_byteCount = 0; 425_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 453_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count, _bytes, 0); 490_byteCount = 0; 496_byteCount = 1; 503_byteCount = 2;
13 references to _byteCount
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (13)
178if (_byteCount == 0) 189_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 192if (_byteCount == 0) 201int charCount = _encoding!.GetChars(_bytes, 0, _byteCount, _chars, 0); 207if (_byteCount < count) 209count = _byteCount; 225if (_byteCount == 0 && _encodingCode == SupportedEncoding.UTF8) 269_stream.Write(_bytes, 0, _byteCount); 358int max = _byteOffset + _byteCount; 361if ((_byteCount % 2) != 0) 422count -= _byteCount; 425_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 451int count = _encoding.GetChars(_bytes, _byteOffset, _byteCount, _chars, 0);