34 references to GetMaxEscapedLength
System.Text.Json (34)
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)
819
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
968
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (2)
141
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
164
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (2)
148
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
171
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (2)
147
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
170
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (2)
147
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
170
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (2)
151
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
174
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (2)
151
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
174
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)
147
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
170
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (2)
266
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
289
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (2)
220
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
243
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndexProp);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (4)
901
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8Value.Length, firstEscapeIndex);
924
int length = JsonWriterHelper.
GetMaxEscapedLength
(value.Length, firstEscapeIndex);
947
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndex);
970
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8PropertyName.Length, firstEscapeIndex);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (2)
229
int length = JsonWriterHelper.
GetMaxEscapedLength
(propertyName.Length, firstEscapeIndexProp);
252
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (2)
140
int length = JsonWriterHelper.
GetMaxEscapedLength
(value.Length, firstEscapeIndexVal);
307
int length = JsonWriterHelper.
GetMaxEscapedLength
(utf8Value.Length, firstEscapeIndexVal);