39 references to MaxUnescapedTokenSize
System.Text.Json (39)
System\Text\Json\ThrowHelper.cs (4)
141
if (propertyName.Length > JsonConstants.
MaxUnescapedTokenSize
)
147
Debug.Assert(value.Length > JsonConstants.
MaxUnescapedTokenSize
);
155
if (propertyName.Length > JsonConstants.
MaxUnescapedTokenSize
)
175
Debug.Assert(value.Length > JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\JsonWriterHelper.cs (7)
66
if (propertyName.Length > JsonConstants.
MaxUnescapedTokenSize
)
73
if (value.Length > JsonConstants.
MaxUnescapedTokenSize
)
112
if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || value.Length > JsonConstants.
MaxUnescapedTokenSize
)
119
if (propertyName.Length > JsonConstants.
MaxUnescapedTokenSize
|| value.Length > JsonConstants.MaxCharacterTokenSize)
126
if (propertyName.Length > JsonConstants.
MaxUnescapedTokenSize
|| value.Length > JsonConstants.
MaxUnescapedTokenSize
)
147
if (propertyName.Length > JsonConstants.
MaxUnescapedTokenSize
)
System\Text\Json\Writer\Utf8JsonWriter.cs (1)
742
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (1)
23
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (1)
27
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (1)
26
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (1)
26
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (1)
26
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (1)
26
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (1)
26
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (1)
23
if (utf8PropertyName.Length > JsonConstants.
MaxUnescapedTokenSize
|| CurrentDepth >= _options.MaxDepth)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (7)
38
Debug.Assert(escapedPropertyNameSection.Length <= JsonConstants.
MaxUnescapedTokenSize
- 3);
51
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
339
Debug.Assert(value.Length <= JsonConstants.
MaxUnescapedTokenSize
);
370
Debug.Assert(value.Length <= JsonConstants.
MaxUnescapedTokenSize
);
403
Debug.Assert(value.Length <= JsonConstants.
MaxUnescapedTokenSize
);
432
Debug.Assert(value.Length <= JsonConstants.
MaxUnescapedTokenSize
);
478
Debug.Assert(value.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (1)
26
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (9)
33
Debug.Assert(escapedPropertyNameSection.Length <= JsonConstants.
MaxUnescapedTokenSize
- 3);
45
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
431
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
&& utf8Value.Length <= JsonConstants.
MaxUnescapedTokenSize
);
604
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
694
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
784
Debug.Assert(utf8Value.Length <= JsonConstants.
MaxUnescapedTokenSize
);
856
Debug.Assert(utf8Value.Length <= JsonConstants.
MaxUnescapedTokenSize
);
1372
Debug.Assert(escapedValue.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (1)
27
Debug.Assert(utf8PropertyName.Length <= JsonConstants.
MaxUnescapedTokenSize
);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (1)
21
Debug.Assert(utf8Value.Length <= JsonConstants.
MaxUnescapedTokenSize
);