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)
178Debug.Assert(_bytes != null); 182_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 194int 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); 254Debug.Assert(_bytes != null); 261_byteCount = _enc!.GetBytes(_chars, 0, charCount, _bytes, 0, false); 262_stream.Write(_bytes, 0, _byteCount); 376Debug.Assert(_bytes != null); 389_bytes[max++] = (byte)b; 397w = _bytes[max - 2] + (_bytes[max - 1] << 8); 401w = _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))] 428if (_bytes != null) 440Debug.Assert(_bytes != null); 445_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 471int count = _encoding.GetChars(_bytes, _byteOffset, _byteCount, _chars, 0); 473_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count, _bytes, 0); 515leading.Slice(bomLength, preserve).CopyTo(_bytes);