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)
77
if (
_bytes
[_byteOffset + 1] != '?' ||
_bytes
[_byteOffset] != '<')
83
CheckUTF8DeclarationEncoding(
_bytes
, _byteOffset, _byteCount, declEnc, expectedEnc);
92
int count = _encoding.GetChars(
_bytes
, _byteOffset, _byteCount, _chars, 0);
94
_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count,
_bytes
, 0);
97
if (
_bytes
[1] == '?' &&
_bytes
[0] == '<')
99
CheckUTF8DeclarationEncoding(
_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
))]
300
if (
_bytes
!= null)
596
Debug.Assert(
_bytes
!= null);
601
_byteCount = _stream.Read(
_bytes
, _byteCount, (_chars.Length - 1) * 2);
611
int 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);
633
Debug.Assert(
_bytes
!= null);
644
_bytes
[max++] = (byte)b;
652
w =
_bytes
[max - 2] + (
_bytes
[max - 1] << 8);
656
w =
_bytes
[max - 1] + (
_bytes
[max - 2] << 8);
664
_bytes
[max++] = (byte)b1;
665
_bytes
[max++] = (byte)b2;
695
Debug.Assert(
_bytes
!= null);
702
_byteCount = _enc!.GetBytes(_chars, 0, charCount,
_bytes
, 0, false);
703
_stream.Write(
_bytes
, 0, _byteCount);