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)
185Debug.Assert(_bytes != null); 189_byteCount = _stream.Read(_bytes, _byteCount, (_chars.Length - 1) * 2); 201int 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); 261Debug.Assert(_bytes != null); 268_byteCount = _enc!.GetBytes(_chars, 0, charCount, _bytes, 0, false); 269_stream.Write(_bytes, 0, _byteCount); 356Debug.Assert(_bytes != null); 369_bytes[max++] = (byte)b; 377w = _bytes[max - 2] + (_bytes[max - 1] << 8); 381w = _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))] 408if (_bytes != null) 420Debug.Assert(_bytes != null); 425_byteCount += _stream.ReadAtLeast(_bytes.AsSpan(_byteOffset + _byteCount, count), count, throwOnEndOfStream: false); 451int 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;