1 instantiation of DbRow
System.Text.Json (1)
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
228
DbRow row = new
DbRow
(tokenType, startLocation, length);
92 references to DbRow
System.Text.Json (92)
System\Text\Json\Document\JsonDocument.cs (50)
122
int matchIndex = isPropertyName ? index -
DbRow
.Size : index;
123
DbRow
row = _parsedData.Get(matchIndex);
133
DbRow
row = _parsedData.Get(index);
144
DbRow
row = _parsedData.Get(index);
155
DbRow
row = _parsedData.Get(currentIndex);
171
return new JsonElement(this, currentIndex + ((arrayIndex + 1) *
DbRow
.Size));
175
int objectOffset = currentIndex +
DbRow
.Size;
177
for (; objectOffset < _parsedData.Length; objectOffset +=
DbRow
.Size)
188
objectOffset +=
DbRow
.Size * row.NumberOfRows;
203
DbRow
row = _parsedData.Get(index);
207
return index +
DbRow
.Size;
210
int endIndex = index +
DbRow
.Size * row.NumberOfRows;
214
endIndex +=
DbRow
.Size;
229
DbRow
row = _parsedData.Get(index);
254
DbRow
row = _parsedData.Get(valueIndex -
DbRow
.Size);
286
DbRow
row = _parsedData.Get(index);
342
int matchIndex = isPropertyName ? index -
DbRow
.Size : index;
344
DbRow
row = _parsedData.Get(matchIndex);
382
return GetString(index -
DbRow
.Size, JsonTokenType.PropertyName)!;
389
DbRow
row = _parsedData.Get(index -
DbRow
.Size);
399
DbRow
row = _parsedData.Get(index);
420
DbRow
row = _parsedData.Get(index);
442
DbRow
row = _parsedData.Get(index);
464
DbRow
row = _parsedData.Get(index);
486
DbRow
row = _parsedData.Get(index);
508
DbRow
row = _parsedData.Get(index);
530
DbRow
row = _parsedData.Get(index);
552
DbRow
row = _parsedData.Get(index);
574
DbRow
row = _parsedData.Get(index);
596
DbRow
row = _parsedData.Get(index);
618
DbRow
row = _parsedData.Get(index);
640
DbRow
row = _parsedData.Get(index);
662
DbRow
row = _parsedData.Get(index);
697
DbRow
row = _parsedData.Get(index);
732
DbRow
row = _parsedData.Get(index);
799
DbRow
row = _parsedData.Get(index);
835
for (int i = index +
DbRow
.Size; i < endIndex; i +=
DbRow
.Size)
837
DbRow
row = _parsedData.Get(i);
878
private ReadOnlySpan<byte> UnescapeString(in
DbRow
row, out ArraySegment<byte> rented)
910
DbRow
row = _parsedData.Get(index -
DbRow
.Size);
915
private void WritePropertyName(in
DbRow
row, Utf8JsonWriter writer)
929
private void WriteString(in
DbRow
row, Utf8JsonWriter writer)
976
database.Append(tokenType, tokenStart,
DbRow
.UnknownSize);
1007
database.Append(tokenType, tokenStart,
DbRow
.UnknownSize);
1058
database.SetHasComplexChildren(database.Length -
DbRow
.Size);
1083
database.SetHasComplexChildren(database.Length -
DbRow
.Size);
System\Text\Json\Document\JsonDocument.DbRow.cs (1)
61
Debug.Assert(Unsafe.SizeOf<
DbRow
>() == Size);
System\Text\Json\Document\JsonDocument.MetadataDb.cs (20)
126
int initialSize = payloadLength +
DbRow
.Size;
145
int size = payloadLength +
DbRow
.Size;
221
(length ==
DbRow
.UnknownSize));
223
if (Length >= _data.Length -
DbRow
.Size)
228
DbRow
row = new DbRow(tokenType, startLocation, length);
230
Length +=
DbRow
.Size;
270
Debug.Assert(index <= Length -
DbRow
.Size, $"index {index} is out of bounds");
271
Debug.Assert(index %
DbRow
.Size == 0, $"index {index} is not at a record start position");
317
for (int i = Length -
DbRow
.Size; i >= 0; i -=
DbRow
.Size)
319
DbRow
row = MemoryMarshal.Read<
DbRow
>(data.Slice(i));
332
internal
DbRow
Get(int index)
335
return MemoryMarshal.Read<
DbRow
>(_data.AsSpan(index));
355
DbRow
start = Get(startIndex);
357
DbRow
end = Get(endIndex -
DbRow
.Size);
374
startIndex +
DbRow
.Size == endIndex,
393
for (int i = (length -
DbRow
.Size) / sizeof(int); i >= 0; i -=
DbRow
.Size / sizeof(int))
System\Text\Json\Document\JsonDocument.TryGetProperty.cs (18)
15
DbRow
row = _parsedData.Get(index);
27
int startIndex = index +
DbRow
.Size;
28
int endIndex = checked(row.NumberOfRows *
DbRow
.Size + index);
52
int candidateIndex = endIndex -
DbRow
.Size;
64
candidateIndex -=
DbRow
.Size;
69
candidateIndex -=
DbRow
.Size * (row.NumberOfRows + 1);
87
passedIndex +
DbRow
.Size,
103
candidateIndex -=
DbRow
.Size;
115
DbRow
row = _parsedData.Get(index);
126
int endIndex = checked(row.NumberOfRows *
DbRow
.Size + index);
129
index +
DbRow
.Size,
145
int index = endIndex -
DbRow
.Size;
149
DbRow
row = _parsedData.Get(index);
155
index -=
DbRow
.Size;
160
index -=
DbRow
.Size * (row.NumberOfRows + 1);
198
value = new JsonElement(this, index +
DbRow
.Size);
216
value = new JsonElement(this, index +
DbRow
.Size);
221
index -=
DbRow
.Size;
System\Text\Json\Document\JsonElement.ArrayEnumerator.cs (1)
91
_curIdx = _target._idx + JsonDocument.
DbRow
.Size;
System\Text\Json\Document\JsonElement.ObjectEnumerator.cs (2)
96
_curIdx = _target._idx + JsonDocument.
DbRow
.Size;
104
_curIdx += JsonDocument.
DbRow
.Size;