6 writes to _data
System.Text.Json (6)
System\Text\Json\Document\JsonDocument.MetadataDb.cs (6)
104_data = initialDb; 112_data = completeDb; 153byte[]? data = Interlocked.Exchange(ref _data, null!); 180_data = _data.AsSpan(0, Length).ToArray(); 204_data = newRent; 257_data = ArrayPool<byte>.Shared.Rent(newCapacity);
18 references to _data
System.Text.Json (18)
System\Text\Json\Document\JsonDocument.MetadataDb.cs (18)
178Debug.Assert(_data != null); 179byte[] returnBuf = _data; 180_data = _data.AsSpan(0, Length).ToArray(); 195if (Length <= _data.Length / 2) 200if (newRent.Length < _data.Length) 202Buffer.BlockCopy(_data, 0, newRent, 0, Length); 203returnBuf = _data; 223if (Length >= _data.Length - DbRow.Size) 229MemoryMarshal.Write(_data.AsSpan(Length), ref row); 237byte[] toReturn = _data; 258Buffer.BlockCopy(toReturn, 0, _data, 0, toReturn.Length); 278Span<byte> destination = _data.AsSpan(index + SizeOrLengthOffset); 287Span<byte> dataPos = _data.AsSpan(index + NumberOfRowsOffset); 300Span<byte> dataPos = _data.AsSpan(index + SizeOrLengthOffset); 315Span<byte> data = _data.AsSpan(0, Length); 335return MemoryMarshal.Read<DbRow>(_data.AsSpan(index)); 341uint union = MemoryMarshal.Read<uint>(_data.AsSpan(index + NumberOfRowsOffset)); 382_data.AsSpan(startIndex, length).CopyTo(newDatabase);