1 write to _chars
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
402
_chars
??= new char[BufferLength];
11 references to _chars
System.Private.DataContractSerialization (11)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (11)
186
Debug.Assert(
_chars
!= 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);
262
Debug.Assert(
_chars
!= null);
266
int size = Math.Min(
_chars
.Length, buffer.Length);
267
int charCount = _dec!.GetChars(buffer.Slice(0, size),
_chars
, false);
268
_byteCount = _enc!.GetBytes(
_chars
, 0, charCount, _bytes, 0, false);
397
[MemberNotNull(nameof(
_chars
))]
451
int count = _encoding.GetChars(_bytes, _byteOffset, _byteCount,
_chars
, 0);
453
_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(
_chars
, 0, count, _bytes, 0);