4 writes to Length
System.Text.Json (4)
System\Text\Json\Document\JsonDocument.MetadataDb.cs (4)
107
Length
= 0;
115
Length
= completeDb.Length;
165
Length
= 0;
230
Length
+= DbRow.Size;
15 references to Length
System.Text.Json (15)
System\Text\Json\Document\JsonDocument.cs (5)
180
for (; objectOffset < _parsedData.
Length
; objectOffset += DbRow.Size)
993
int newRowIndex = database.
Length
;
1040
int newRowIndex = database.
Length
;
1061
database.SetHasComplexChildren(database.
Length
- DbRow.Size);
1086
database.SetHasComplexChildren(database.
Length
- DbRow.Size);
System\Text\Json\Document\JsonDocument.MetadataDb.cs (10)
180
_data = _data.AsSpan(0,
Length
).ToArray();
195
if (
Length
<= _data.Length / 2)
197
byte[] newRent = ArrayPool<byte>.Shared.Rent(
Length
);
202
Buffer.BlockCopy(_data, 0, newRent, 0,
Length
);
223
if (
Length
>= _data.Length - DbRow.Size)
229
MemoryMarshal.Write(_data.AsSpan(
Length
), ref row);
270
Debug.Assert(index <=
Length
- DbRow.Size, $"index {index} is out of bounds");
315
Span<byte> data = _data.AsSpan(0,
Length
);
317
for (int i =
Length
- DbRow.Size; i >= 0; i -= DbRow.Size)
353
Debug.Assert(endIndex <=
Length
);