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)
161
Debug.Assert(escapedPropertyName.Length <= JsonConstants.
MaxEscapedTokenSize
);
192
Debug.Assert(escapedPropertyName.Length <= JsonConstants.
MaxEscapedTokenSize
);
322
Debug.Assert(escapedPropertyName.Length <= JsonConstants.
MaxEscapedTokenSize
);
352
Debug.Assert(escapedPropertyNameSection.Length <= JsonConstants.
MaxEscapedTokenSize
- 3);
380
Debug.Assert(escapedPropertyName.Length <= JsonConstants.
MaxEscapedTokenSize
);
1407
Debug.Assert(escapedValue.Length <= JsonConstants.
MaxEscapedTokenSize
);
1443
Debug.Assert(escapedValue.Length <= JsonConstants.
MaxEscapedTokenSize
);
1479
Debug.Assert(escapedValue.Length <= JsonConstants.
MaxEscapedTokenSize
);
1518
Debug.Assert(escapedValue.Length <= JsonConstants.
MaxEscapedTokenSize
);
1568
Debug.Assert(escapedValue.Length <= JsonConstants.
MaxEscapedTokenSize
);
1619
Debug.Assert(escapedValue.Length <= JsonConstants.
MaxEscapedTokenSize
);
1670
Debug.Assert(escapedValue.Length <= JsonConstants.
MaxEscapedTokenSize
);