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