12 references to MaximumFormatSingleLength
System.Text.Json (12)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (9)
221
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - JsonConstants.
MaximumFormatSingleLength
- 4);
225
int maxRequired = (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatSingleLength
+ 4;
252
Debug.Assert(escapedPropertyName.Length < int.MaxValue - JsonConstants.
MaximumFormatSingleLength
- 4);
254
int minRequired = escapedPropertyName.Length + JsonConstants.
MaximumFormatSingleLength
+ 3; // 2 quotes for property name, and 1 colon
286
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - indent - JsonConstants.
MaximumFormatSingleLength
- 5 - _newLineLength);
290
int maxRequired = indent + (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatSingleLength
+ 5 + _newLineLength;
332
Debug.Assert(escapedPropertyName.Length < int.MaxValue - indent - JsonConstants.
MaximumFormatSingleLength
- 5 - _newLineLength);
334
int minRequired = indent + escapedPropertyName.Length + JsonConstants.
MaximumFormatSingleLength
+ 4; // 2 quotes for property name, 1 colon, and 1 space
375
Span<byte> utf8PropertyName = stackalloc byte[JsonConstants.
MaximumFormatSingleLength
];
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (3)
48
int maxRequired = JsonConstants.
MaximumFormatSingleLength
+ 1; // Optionally, 1 list separator
72
int maxRequired = indent + JsonConstants.
MaximumFormatSingleLength
+ 1 + _newLineLength; // Optionally, 1 list separator and 1-2 bytes for new line
147
Span<byte> utf8Number = stackalloc byte[JsonConstants.
MaximumFormatSingleLength
];