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