1 write to _bytes
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
409
_bytes
= new byte[BufferLength * 4];
26 references to _bytes
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (26)
181
Debug.Assert(
_bytes
!= null);
185
_byteCount = _stream.Read(
_bytes
, _byteCount, (_chars.Length - 1) * 2);
197
int charCount = _encoding!.GetChars(
_bytes
, 0, _byteCount, _chars, 0);
198
_byteCount = Encoding.UTF8.GetBytes(_chars, 0, charCount,
_bytes
, 0);
208
_bytes
.AsSpan(_byteOffset, count).CopyTo(buffer);
257
Debug.Assert(
_bytes
!= null);
264
_byteCount = _enc!.GetBytes(_chars, 0, charCount,
_bytes
, 0, false);
265
_stream.Write(
_bytes
, 0, _byteCount);
352
Debug.Assert(
_bytes
!= null);
365
_bytes
[max++] = (byte)b;
373
w =
_bytes
[max - 2] + (
_bytes
[max - 1] << 8);
377
w =
_bytes
[max - 1] + (
_bytes
[max - 2] << 8);
387
_bytes
[max++] = (byte)b1;
388
_bytes
[max++] = (byte)b2;
394
[MemberNotNull(nameof(
_bytes
))]
401
[MemberNotNull(nameof(
_bytes
))]
404
if (
_bytes
!= null)
416
Debug.Assert(
_bytes
!= null);
421
_byteCount += _stream.ReadAtLeast(
_bytes
.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false);
447
int count = _encoding.GetChars(
_bytes
, _byteOffset, _byteCount, _chars, 0);
449
_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count,
_bytes
, 0);
491
_bytes
[0] = (byte)b1;
497
_bytes
[0] = (byte)b1;
498
_bytes
[1] = (byte)b2;