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