12 references to MaximumFormatUInt64Length
System.Text.Json (12)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (9)
302
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - JsonConstants.
MaximumFormatUInt64Length
- 4);
306
int maxRequired = (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatUInt64Length
+ 4;
333
Debug.Assert(escapedPropertyName.Length < int.MaxValue - JsonConstants.
MaximumFormatUInt64Length
- 4);
335
int minRequired = escapedPropertyName.Length + JsonConstants.
MaximumFormatUInt64Length
+ 3; // 2 quotes for property name, and 1 colon
367
Debug.Assert(escapedPropertyName.Length < (int.MaxValue / JsonConstants.MaxExpansionFactorWhileTranscoding) - indent - JsonConstants.
MaximumFormatUInt64Length
- 5 - _newLineLength);
371
int maxRequired = indent + (escapedPropertyName.Length * JsonConstants.MaxExpansionFactorWhileTranscoding) + JsonConstants.
MaximumFormatUInt64Length
+ 5 + _newLineLength;
413
Debug.Assert(escapedPropertyName.Length < int.MaxValue - indent - JsonConstants.
MaximumFormatUInt64Length
- 5 - _newLineLength);
415
int minRequired = indent + escapedPropertyName.Length + JsonConstants.
MaximumFormatUInt64Length
+ 4; // 2 quotes for property name, 1 colon, and 1 space
459
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
];