1 write to _bytes
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
433
_bytes
= new byte[BufferLength * 4];
24 references to _bytes
System.Private.DataContractSerialization (24)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (24)
178
Debug.Assert(
_bytes
!= null);
182
_byteCount = _stream.Read(
_bytes
, _byteCount, (_chars.Length - 1) * 2);
194
int charCount = _encoding!.GetChars(
_bytes
, 0, _byteCount, _chars, 0);
195
_byteCount = Encoding.UTF8.GetBytes(_chars, 0, charCount,
_bytes
, 0);
205
_bytes
.AsSpan(_byteOffset, count).CopyTo(buffer);
254
Debug.Assert(
_bytes
!= null);
261
_byteCount = _enc!.GetBytes(_chars, 0, charCount,
_bytes
, 0, false);
262
_stream.Write(
_bytes
, 0, _byteCount);
376
Debug.Assert(
_bytes
!= null);
389
_bytes
[max++] = (byte)b;
397
w =
_bytes
[max - 2] + (
_bytes
[max - 1] << 8);
401
w =
_bytes
[max - 1] + (
_bytes
[max - 2] << 8);
411
_bytes
[max++] = (byte)b1;
412
_bytes
[max++] = (byte)b2;
418
[MemberNotNull(nameof(
_bytes
))]
425
[MemberNotNull(nameof(
_bytes
))]
428
if (
_bytes
!= null)
440
Debug.Assert(
_bytes
!= null);
445
_byteCount += _stream.ReadAtLeast(
_bytes
.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false);
471
int count = _encoding.GetChars(
_bytes
, _byteOffset, _byteCount, _chars, 0);
473
_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count,
_bytes
, 0);
515
leading.Slice(bomLength, preserve).CopyTo(
_bytes
);