14 references to MaximumFormatGuidLength
System.Text.Json (14)
System\Text\Json\JsonConstants.cs (1)
91
public const int MaximumEscapedGuidLength = MaxExpansionFactorWhileEscaping *
MaximumFormatGuidLength
;
System\Text\Json\Reader\JsonReaderHelper.cs (2)
194
if (segment.Length == JsonConstants.
MaximumFormatGuidLength
216
if (utf8Unescaped.Length == JsonConstants.
MaximumFormatGuidLength
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (9)
214
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - JsonConstants.
MaximumFormatGuidLength
- 6);
218
int maxRequired = (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatGuidLength
+ 6;
249
Debug.Assert(escapedPropertyName.Length < int.MaxValue - JsonConstants.
MaximumFormatGuidLength
- 6);
251
int minRequired = escapedPropertyName.Length + JsonConstants.
MaximumFormatGuidLength
+ 5; // 2 quotes for property name, 2 quotes for date, and 1 colon
287
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - indent - JsonConstants.
MaximumFormatGuidLength
- 7 - _newLineLength);
291
int maxRequired = indent + (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatGuidLength
+ 7 + _newLineLength;
337
Debug.Assert(escapedPropertyName.Length < int.MaxValue - indent - JsonConstants.
MaximumFormatGuidLength
- 7 - _newLineLength);
339
int minRequired = indent + escapedPropertyName.Length + JsonConstants.
MaximumFormatGuidLength
+ 6; // 2 quotes for property name, 2 quotes for date, 1 colon, and 1 space
384
Span<byte> utf8PropertyName = stackalloc byte[JsonConstants.
MaximumFormatGuidLength
];
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (2)
44
int maxRequired = JsonConstants.
MaximumFormatGuidLength
+ 3; // 2 quotes, and optionally, 1 list separator
73
int maxRequired = indent + JsonConstants.
MaximumFormatGuidLength
+ 3 + _newLineLength;