1 write to _bytes
System.Private.DataContractSerialization (1)
System\Xml\EncodingStreamWrapper.cs (1)
303_bytes = new byte[BufferLength * 4];
36 references to _bytes
System.Private.DataContractSerialization (36)
System\Xml\EncodingStreamWrapper.cs (36)
77if (_bytes[_byteOffset + 1] != '?' || _bytes[_byteOffset] != '<') 83CheckUTF8DeclarationEncoding(_bytes, _byteOffset, _byteCount, declEnc, expectedEnc); 92int count = _encoding.GetChars(_bytes, _byteOffset, _byteCount, _chars, 0); 94_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count, _bytes, 0); 97if (_bytes[1] == '?' && _bytes[0] == '<') 99CheckUTF8DeclarationEncoding(_bytes, 0, _byteCount, declEnc, expectedEnc); 190[MemberNotNull(nameof(_bytes))] 209_bytes[0] = (byte)b4; 213_bytes[0] = (byte)b3; 214_bytes[1] = (byte)b4; 218_bytes[0] = (byte)b1; 219_bytes[1] = (byte)b2; 220_bytes[2] = (byte)b3; 221_bytes[3] = (byte)b4; 285_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 289[MemberNotNull(nameof(_bytes))] 297[MemberNotNull(nameof(_bytes))] 300if (_bytes != null) 596Debug.Assert(_bytes != null); 601_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 611int charCount = _encoding!.GetChars(_bytes, 0, _byteCount, _chars, 0); 612_byteCount = Encoding.UTF8.GetBytes(_chars, 0, charCount, _bytes, 0); 620_bytes.AsSpan(_byteOffset, count).CopyTo(buffer); 633Debug.Assert(_bytes != null); 644_bytes[max++] = (byte)b; 652w = _bytes[max - 2] + (_bytes[max - 1] << 8); 656w = _bytes[max - 1] + (_bytes[max - 2] << 8); 664_bytes[max++] = (byte)b1; 665_bytes[max++] = (byte)b2; 695Debug.Assert(_bytes != null); 702_byteCount = _enc!.GetBytes(_chars, 0, charCount, _bytes, 0, false); 703_stream.Write(_bytes, 0, _byteCount);