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)
125
int matchIndex = isPropertyName ? index -
DbRow
.Size : index;
126
DbRow
row = _parsedData.Get(matchIndex);
136
DbRow
row = _parsedData.Get(index);
147
DbRow
row = _parsedData.Get(index);
158
DbRow
row = _parsedData.Get(currentIndex);
174
return new JsonElement(this, currentIndex + ((arrayIndex + 1) *
DbRow
.Size));
178
int objectOffset = currentIndex +
DbRow
.Size;
180
for (; objectOffset < _parsedData.Length; objectOffset +=
DbRow
.Size)
191
objectOffset +=
DbRow
.Size * row.NumberOfRows;
206
DbRow
row = _parsedData.Get(index);
210
return index +
DbRow
.Size;
213
int endIndex = index +
DbRow
.Size * row.NumberOfRows;
217
endIndex +=
DbRow
.Size;
232
DbRow
row = _parsedData.Get(index);
257
DbRow
row = _parsedData.Get(valueIndex -
DbRow
.Size);
289
DbRow
row = _parsedData.Get(index);
345
int matchIndex = isPropertyName ? index -
DbRow
.Size : index;
347
DbRow
row = _parsedData.Get(matchIndex);
385
return GetString(index -
DbRow
.Size, JsonTokenType.PropertyName)!;
392
DbRow
row = _parsedData.Get(index -
DbRow
.Size);
402
DbRow
row = _parsedData.Get(index);
423
DbRow
row = _parsedData.Get(index);
445
DbRow
row = _parsedData.Get(index);
467
DbRow
row = _parsedData.Get(index);
489
DbRow
row = _parsedData.Get(index);
511
DbRow
row = _parsedData.Get(index);
533
DbRow
row = _parsedData.Get(index);
555
DbRow
row = _parsedData.Get(index);
577
DbRow
row = _parsedData.Get(index);
599
DbRow
row = _parsedData.Get(index);
621
DbRow
row = _parsedData.Get(index);
643
DbRow
row = _parsedData.Get(index);
665
DbRow
row = _parsedData.Get(index);
700
DbRow
row = _parsedData.Get(index);
735
DbRow
row = _parsedData.Get(index);
802
DbRow
row = _parsedData.Get(index);
838
for (int i = index +
DbRow
.Size; i < endIndex; i +=
DbRow
.Size)
840
DbRow
row = _parsedData.Get(i);
881
private ReadOnlySpan<byte> UnescapeString(in
DbRow
row, out ArraySegment<byte> rented)
913
DbRow
row = _parsedData.Get(index -
DbRow
.Size);
918
private void WritePropertyName(in
DbRow
row, Utf8JsonWriter writer)
932
private void WriteString(in
DbRow
row, Utf8JsonWriter writer)
979
database.Append(tokenType, tokenStart,
DbRow
.UnknownSize);
1010
database.Append(tokenType, tokenStart,
DbRow
.UnknownSize);
1061
database.SetHasComplexChildren(database.Length -
DbRow
.Size);
1086
database.SetHasComplexChildren(database.Length -
DbRow
.Size);
System\Text\Json\Document\JsonDocument.DbRow.cs (1)
57
Debug.Assert(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;