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