48 references to Size
System.Text.Json (48)
System\Text\Json\Document\JsonDocument.cs (17)
125int matchIndex = isPropertyName ? index - DbRow.Size : index; 174return new JsonElement(this, currentIndex + ((arrayIndex + 1) * DbRow.Size)); 178int objectOffset = currentIndex + DbRow.Size; 180for (; objectOffset < _parsedData.Length; objectOffset += DbRow.Size) 191objectOffset += DbRow.Size * row.NumberOfRows; 210return index + DbRow.Size; 213int endIndex = index + DbRow.Size * row.NumberOfRows; 217endIndex += DbRow.Size; 257DbRow row = _parsedData.Get(valueIndex - DbRow.Size); 345int matchIndex = isPropertyName ? index - DbRow.Size : index; 385return GetString(index - DbRow.Size, JsonTokenType.PropertyName)!; 392DbRow row = _parsedData.Get(index - DbRow.Size); 838for (int i = index + DbRow.Size; i < endIndex; i += DbRow.Size) 913DbRow row = _parsedData.Get(index - DbRow.Size); 1061database.SetHasComplexChildren(database.Length - DbRow.Size); 1086database.SetHasComplexChildren(database.Length - DbRow.Size);
System\Text\Json\Document\JsonDocument.DbRow.cs (1)
57Debug.Assert(sizeof(DbRow) == Size);
System\Text\Json\Document\JsonDocument.MetadataDb.cs (12)
126int initialSize = payloadLength + DbRow.Size; 145int size = payloadLength + DbRow.Size; 223if (Length >= _data.Length - DbRow.Size) 230Length += DbRow.Size; 270Debug.Assert(index <= Length - DbRow.Size, $"index {index} is out of bounds"); 271Debug.Assert(index % DbRow.Size == 0, $"index {index} is not at a record start position"); 317for (int i = Length - DbRow.Size; i >= 0; i -= DbRow.Size) 357DbRow end = Get(endIndex - DbRow.Size); 374startIndex + DbRow.Size == endIndex, 393for (int i = (length - DbRow.Size) / sizeof(int); i >= 0; i -= DbRow.Size / sizeof(int))
System\Text\Json\Document\JsonDocument.TryGetProperty.cs (15)
27int startIndex = index + DbRow.Size; 28int endIndex = checked(row.NumberOfRows * DbRow.Size + index); 52int candidateIndex = endIndex - DbRow.Size; 64candidateIndex -= DbRow.Size; 69candidateIndex -= DbRow.Size * (row.NumberOfRows + 1); 87passedIndex + DbRow.Size, 103candidateIndex -= DbRow.Size; 126int endIndex = checked(row.NumberOfRows * DbRow.Size + index); 129index + DbRow.Size, 145int index = endIndex - DbRow.Size; 155index -= DbRow.Size; 160index -= DbRow.Size * (row.NumberOfRows + 1); 198value = new JsonElement(this, index + DbRow.Size); 216value = new JsonElement(this, index + DbRow.Size); 221index -= 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;