14 references to MaxEscapedTokenSize
System.Text.Json (14)
System\Text\Json\JsonConstants.cs (2)
79public const int MaxUnescapedTokenSize = MaxEscapedTokenSize / MaxExpansionFactorWhileEscaping; // 166_666_666 bytes 80public const int MaxCharacterTokenSize = MaxEscapedTokenSize / MaxExpansionFactorWhileEscaping; // 166_666_666 characters
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (12)
158Debug.Assert(escapedPropertyName.Length <= JsonConstants.MaxEscapedTokenSize); 189Debug.Assert(escapedPropertyName.Length <= JsonConstants.MaxEscapedTokenSize); 319Debug.Assert(escapedPropertyName.Length <= JsonConstants.MaxEscapedTokenSize); 349Debug.Assert(escapedPropertyNameSection.Length <= JsonConstants.MaxEscapedTokenSize - 3); 377Debug.Assert(escapedPropertyName.Length <= JsonConstants.MaxEscapedTokenSize); 1392Debug.Assert(escapedValue.Length <= JsonConstants.MaxEscapedTokenSize); 1428Debug.Assert(escapedValue.Length <= JsonConstants.MaxEscapedTokenSize); 1464Debug.Assert(escapedValue.Length <= JsonConstants.MaxEscapedTokenSize); 1503Debug.Assert(escapedValue.Length <= JsonConstants.MaxEscapedTokenSize); 1553Debug.Assert(escapedValue.Length <= JsonConstants.MaxEscapedTokenSize); 1604Debug.Assert(escapedValue.Length <= JsonConstants.MaxEscapedTokenSize); 1655Debug.Assert(escapedValue.Length <= JsonConstants.MaxEscapedTokenSize);