12 references to MaximumFormatUInt64Length
System.Text.Json (12)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (9)
296
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - JsonConstants.
MaximumFormatUInt64Length
- 4);
300
int maxRequired = (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatUInt64Length
+ 4;
327
Debug.Assert(escapedPropertyName.Length < int.MaxValue - JsonConstants.
MaximumFormatUInt64Length
- 4);
329
int minRequired = escapedPropertyName.Length + JsonConstants.
MaximumFormatUInt64Length
+ 3; // 2 quotes for property name, and 1 colon
361
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - indent - JsonConstants.
MaximumFormatUInt64Length
- 5 - _newLineLength);
365
int maxRequired = indent + (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatUInt64Length
+ 5 + _newLineLength;
407
Debug.Assert(escapedPropertyName.Length < int.MaxValue - indent - JsonConstants.
MaximumFormatUInt64Length
- 5 - _newLineLength);
409
int minRequired = indent + escapedPropertyName.Length + JsonConstants.
MaximumFormatUInt64Length
+ 4; // 2 quotes for property name, 1 colon, and 1 space
453
Span<byte> utf8PropertyName = stackalloc byte[JsonConstants.
MaximumFormatUInt64Length
];
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (3)
59
int maxRequired = JsonConstants.
MaximumFormatUInt64Length
+ 1; // Optionally, 1 list separator
83
int maxRequired = indent + JsonConstants.
MaximumFormatUInt64Length
+ 1 + _newLineLength; // Optionally, 1 list separator and 1-2 bytes for new line
114
Span<byte> utf8Number = stackalloc byte[JsonConstants.
MaximumFormatUInt64Length
];