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