1 write to bytes
System.Runtime.Serialization (1)
System\Xml\EncodingStreamWrapper.cs (1)
329bytes = new byte[BufferLength * 4];
30 references to bytes
System.Runtime.Serialization (30)
System\Xml\EncodingStreamWrapper.cs (30)
75if (bytes[byteOffset + 1] != '?' || bytes[byteOffset] != '<') 81CheckUTF8DeclarationEncoding(bytes, byteOffset, byteCount, declEnc, expectedEnc); 90int count = this.encoding.GetChars(bytes, byteOffset, byteCount, chars, 0); 92byteCount = ValidatingUTF8.GetBytes(chars, 0, count, bytes, 0); 95if (bytes[1] == '?' && bytes[0] == '<') 97CheckUTF8DeclarationEncoding(bytes, 0, byteCount, declEnc, expectedEnc); 232bytes[0] = (byte)b4; 236bytes[0] = (byte)b3; 237bytes[1] = (byte)b4; 241bytes[0] = (byte)b1; 242bytes[1] = (byte)b2; 243bytes[2] = (byte)b3; 244bytes[3] = (byte)b4; 308int read = stream.Read(bytes, byteOffset + byteCount, count); 326if (bytes != null) 628byteCount = this.stream.Read(bytes, byteCount, (chars.Length - 1) * 2); 638int charCount = this.encoding.GetChars(bytes, 0, byteCount, chars, 0); 639byteCount = Encoding.UTF8.GetBytes(chars, 0, charCount, bytes, 0); 645Buffer.BlockCopy(bytes, byteOffset, buffer, offset, count); 667bytes[max++] = (byte)b; 675w = bytes[max - 2] + (bytes[max - 1] << 8); 679w = bytes[max - 1] + (bytes[max - 2] << 8); 687bytes[max++] = (byte)b1; 688bytes[max++] = (byte)b2; 722byteCount = enc.GetBytes(chars, 0, charCount, bytes, 0, false); 723this.stream.Write(bytes, 0, byteCount);