39 references to MaxUnescapedTokenSize
System.Text.Json (39)
System\Text\Json\ThrowHelper.cs (4)
142if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize) 148Debug.Assert(value.Length > JsonConstants.MaxUnescapedTokenSize); 156if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize) 176Debug.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)
722Debug.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)
24if (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); 333Debug.Assert(value.Length <= JsonConstants.MaxUnescapedTokenSize); 364Debug.Assert(value.Length <= JsonConstants.MaxUnescapedTokenSize); 397Debug.Assert(value.Length <= JsonConstants.MaxUnescapedTokenSize); 426Debug.Assert(value.Length <= JsonConstants.MaxUnescapedTokenSize); 472Debug.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); 428Debug.Assert(utf8PropertyName.Length <= JsonConstants.MaxUnescapedTokenSize && utf8Value.Length <= JsonConstants.MaxUnescapedTokenSize); 595Debug.Assert(utf8PropertyName.Length <= JsonConstants.MaxUnescapedTokenSize); 682Debug.Assert(utf8PropertyName.Length <= JsonConstants.MaxUnescapedTokenSize); 769Debug.Assert(utf8Value.Length <= JsonConstants.MaxUnescapedTokenSize); 841Debug.Assert(utf8Value.Length <= JsonConstants.MaxUnescapedTokenSize); 1357Debug.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);