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