32 references to GetMaxEscapedLength
System.Text.Json (32)
System\Text\Json\JsonHelpers.Escaping.cs (2)
38
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8Value.Length, firstEscapeIndexVal);
66
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8Value.Length, firstEscapeIndexVal);
System\Text\Json\Writer\Utf8JsonWriter.cs (2)
715
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
870
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (2)
144
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
167
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (2)
151
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
174
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (2)
150
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
173
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (2)
150
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
173
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (2)
154
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
177
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (2)
154
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
177
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs (2)
121
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
144
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (2)
150
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
173
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (2)
272
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
295
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (2)
226
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
249
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (4)
916
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8Value.Length, firstEscapeIndex);
939
int length = JsonWriterHelper.
GetMaxEscapedLength
(value.Length, firstEscapeIndex);
962
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndex);
985
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndex);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (2)
235
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
258
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (2)
190
int length = JsonWriterHelper.
GetMaxEscapedLength
(value.Length, firstEscapeIndexVal);
337
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8Value.Length, firstEscapeIndexVal);