15 references to MaximumFormatGuidLength
System.Text.Json (15)
System\Text\Json\Document\JsonDocument.cs (1)
756if (segment.Length == JsonConstants.MaximumFormatGuidLength
System\Text\Json\JsonConstants.cs (1)
90public const int MaximumEscapedGuidLength = MaxExpansionFactorWhileEscaping * MaximumFormatGuidLength;
System\Text\Json\Reader\JsonReaderHelper.cs (1)
137if (utf8Unescaped.Length == JsonConstants.MaximumFormatGuidLength
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
1410if (span.Length == JsonConstants.MaximumFormatGuidLength
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (9)
217Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - JsonConstants.MaximumFormatGuidLength - 6); 221int maxRequired = (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.MaximumFormatGuidLength + 6; 252Debug.Assert(escapedPropertyName.Length < int.MaxValue - JsonConstants.MaximumFormatGuidLength - 6); 254int minRequired = escapedPropertyName.Length + JsonConstants.MaximumFormatGuidLength + 5; // 2 quotes for property name, 2 quotes for date, and 1 colon 290Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - indent - JsonConstants.MaximumFormatGuidLength - 7 - _newLineLength); 294int maxRequired = indent + (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.MaximumFormatGuidLength + 7 + _newLineLength; 340Debug.Assert(escapedPropertyName.Length < int.MaxValue - indent - JsonConstants.MaximumFormatGuidLength - 7 - _newLineLength); 342int minRequired = indent + escapedPropertyName.Length + JsonConstants.MaximumFormatGuidLength + 6; // 2 quotes for property name, 2 quotes for date, 1 colon, and 1 space 387Span<byte> utf8PropertyName = stackalloc byte[JsonConstants.MaximumFormatGuidLength];
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (2)
44int maxRequired = JsonConstants.MaximumFormatGuidLength + 3; // 2 quotes, and optionally, 1 list separator 73int maxRequired = indent + JsonConstants.MaximumFormatGuidLength + 3 + _newLineLength;