48 references to Size
System.Text.Json (48)
System\Text\Json\Document\JsonDocument.cs (17)
125
int matchIndex = isPropertyName ? index - DbRow.
Size
: index;
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;
210
return index + DbRow.
Size
;
213
int endIndex = index + DbRow.
Size
* row.NumberOfRows;
217
endIndex += DbRow.
Size
;
257
DbRow row = _parsedData.Get(valueIndex - DbRow.
Size
);
345
int matchIndex = isPropertyName ? index - DbRow.
Size
: index;
385
return GetString(index - DbRow.
Size
, JsonTokenType.PropertyName)!;
392
DbRow row = _parsedData.Get(index - DbRow.
Size
);
838
for (int i = index + DbRow.
Size
; i < endIndex; i += DbRow.
Size
)
913
DbRow row = _parsedData.Get(index - DbRow.
Size
);
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 (12)
126
int initialSize = payloadLength + DbRow.
Size
;
145
int size = payloadLength + DbRow.
Size
;
223
if (Length >= _data.Length - DbRow.
Size
)
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
)
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 (15)
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
;
126
int endIndex = checked(row.NumberOfRows * DbRow.
Size
+ index);
129
index + DbRow.
Size
,
145
int index = endIndex - DbRow.
Size
;
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
;