1 write to _bytes
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
413
_bytes
= new byte[BufferLength * 4];
26 references to _bytes
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (26)
185
Debug.Assert(
_bytes
!= null);
189
_byteCount = _stream.Read(
_bytes
, _byteCount, (_chars.Length - 1) * 2);
201
int charCount = _encoding!.GetChars(
_bytes
, 0, _byteCount, _chars, 0);
202
_byteCount = Encoding.UTF8.GetBytes(_chars, 0, charCount,
_bytes
, 0);
212
_bytes
.AsSpan(_byteOffset, count).CopyTo(buffer);
261
Debug.Assert(
_bytes
!= null);
268
_byteCount = _enc!.GetBytes(_chars, 0, charCount,
_bytes
, 0, false);
269
_stream.Write(
_bytes
, 0, _byteCount);
356
Debug.Assert(
_bytes
!= null);
369
_bytes
[max++] = (byte)b;
377
w =
_bytes
[max - 2] + (
_bytes
[max - 1] << 8);
381
w =
_bytes
[max - 1] + (
_bytes
[max - 2] << 8);
391
_bytes
[max++] = (byte)b1;
392
_bytes
[max++] = (byte)b2;
398
[MemberNotNull(nameof(
_bytes
))]
405
[MemberNotNull(nameof(
_bytes
))]
408
if (
_bytes
!= null)
420
Debug.Assert(
_bytes
!= null);
425
_byteCount += _stream.ReadAtLeast(
_bytes
.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false);
451
int count = _encoding.GetChars(
_bytes
, _byteOffset, _byteCount, _chars, 0);
453
_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count,
_bytes
, 0);
495
_bytes
[0] = (byte)b1;
501
_bytes
[0] = (byte)b1;
502
_bytes
[1] = (byte)b2;