12 writes to byteCount
System.Runtime.Serialization (12)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (12)
215byteCount = this.stream.Read(bytes, byteCount, (chars.Length - 1) * 2); 228byteCount = Encoding.UTF8.GetBytes(chars, 0, charCount, bytes, 0); 238byteCount -= count; 285byteCount = enc.GetBytes(chars, 0, charCount, bytes, 0, false); 408byteCount++; 432byteCount += 2; 454byteCount = 0; 468byteCount += read; 497byteCount = ValidatingUTF8.GetBytes(chars, 0, count, bytes, 0); 535byteCount = 0; 541byteCount = 1; 548byteCount = 2;
13 references to byteCount
System.Runtime.Serialization (13)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (13)
206if (byteCount == 0) 215byteCount = this.stream.Read(bytes, byteCount, (chars.Length - 1) * 2); 218if (byteCount == 0) 227int charCount = this.encoding.GetChars(bytes, 0, byteCount, chars, 0); 232if (byteCount < count) 234count = byteCount; 250if (byteCount == 0 && encodingCode == SupportedEncoding.UTF8) 286this.stream.Write(bytes, 0, byteCount); 395int max = byteOffset + byteCount; 398if ((byteCount % 2) != 0) 459count -= byteCount; 462int read = stream.Read(bytes, byteOffset + byteCount, count); 495int count = this.encoding.GetChars(bytes, byteOffset, byteCount, chars, 0);