12 references to MaximumFormatInt64Length
System.Text.Json (12)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (9)
287
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - JsonConstants.
MaximumFormatInt64Length
- 4);
291
int maxRequired = (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatInt64Length
+ 4;
318
Debug.Assert(escapedPropertyName.Length < int.MaxValue - JsonConstants.
MaximumFormatInt64Length
- 4);
320
int minRequired = escapedPropertyName.Length + JsonConstants.
MaximumFormatInt64Length
+ 3; // 2 quotes for property name, and 1 colon
352
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - indent - JsonConstants.
MaximumFormatInt64Length
- 5 - _newLineLength);
356
int maxRequired = indent + (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatInt64Length
+ 5 + _newLineLength;
398
Debug.Assert(escapedPropertyName.Length < int.MaxValue - indent - JsonConstants.
MaximumFormatInt64Length
- 5 - _newLineLength);
400
int minRequired = indent + escapedPropertyName.Length + JsonConstants.
MaximumFormatInt64Length
+ 4; // 2 quotes for property name, 1 colon, and 1 space
444
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
];