12 references to MaximumFormatInt64Length
System.Text.Json (12)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (9)
293
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - JsonConstants.
MaximumFormatInt64Length
- 4);
297
int maxRequired = (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatInt64Length
+ 4;
324
Debug.Assert(escapedPropertyName.Length < int.MaxValue - JsonConstants.
MaximumFormatInt64Length
- 4);
326
int minRequired = escapedPropertyName.Length + JsonConstants.
MaximumFormatInt64Length
+ 3; // 2 quotes for property name, and 1 colon
358
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - indent - JsonConstants.
MaximumFormatInt64Length
- 5 - _newLineLength);
362
int maxRequired = indent + (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatInt64Length
+ 5 + _newLineLength;
404
Debug.Assert(escapedPropertyName.Length < int.MaxValue - indent - JsonConstants.
MaximumFormatInt64Length
- 5 - _newLineLength);
406
int minRequired = indent + escapedPropertyName.Length + JsonConstants.
MaximumFormatInt64Length
+ 4; // 2 quotes for property name, 1 colon, and 1 space
450
Span<byte> utf8PropertyName = stackalloc byte[JsonConstants.
MaximumFormatInt64Length
];
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (3)
57
int maxRequired = JsonConstants.
MaximumFormatInt64Length
+ 1; // Optionally, 1 list separator
81
int maxRequired = indent + JsonConstants.
MaximumFormatInt64Length
+ 1 + _newLineLength; // Optionally, 1 list separator and 1-2 bytes for new line
112
Span<byte> utf8Number = stackalloc byte[JsonConstants.
MaximumFormatInt64Length
];