219 references to JsonWriterHelper
System.Text.Json (219)
System\Text\Json\Document\JsonDocument.cs (1)
316OperationStatus status = JsonWriterHelper.ToUtf8(otherText, otherUtf8Text, out int written);
System\Text\Json\JsonEncodedText.cs (3)
78JsonWriterHelper.ValidateValue(value); 120JsonWriterHelper.ValidateValue(utf8Value); 126int idx = JsonWriterHelper.NeedsEscaping(utf8Value, encoder);
System\Text\Json\JsonHelpers.Escaping.cs (5)
16int idx = JsonWriterHelper.NeedsEscaping(utf8Value, encoder); 38int length = JsonWriterHelper.GetMaxEscapedLength(utf8Value.Length, firstEscapeIndexVal); 44JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal, encoder, out int written); 66int length = JsonWriterHelper.GetMaxEscapedLength(utf8Value.Length, firstEscapeIndexVal); 72JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal, encoder, out int written);
System\Text\Json\Reader\Utf8JsonReader.cs (1)
552OperationStatus status = JsonWriterHelper.ToUtf8(text, otherUtf8Text, out int written);
System\Text\Json\Serialization\JsonSerializerOptions.cs (3)
715JsonWriterHelper.ValidateIndentCharacter(value); 737JsonWriterHelper.ValidateIndentSize(value); 778JsonWriterHelper.ValidateNewLine(value);
System\Text\Json\Writer\JsonWriterOptions.cs (3)
58JsonWriterHelper.ValidateIndentCharacter(value); 76JsonWriterHelper.ValidateIndentSize(value); 155JsonWriterHelper.ValidateNewLine(value);
System\Text\Json\Writer\Utf8JsonWriter.cs (7)
784int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 819int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 825JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 933int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 968int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 974JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 1140JsonWriterHelper.WriteIndentation(buffer, indent, _indentByte);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (8)
70JsonWriterHelper.ValidatePropertyNameLength(propertyName); 94JsonWriterHelper.ValidatePropertyNameLength(utf8PropertyName); 104int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 120int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 141int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 147JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 164int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 170JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (13)
76JsonWriterHelper.ValidateProperty(propertyName); 101JsonWriterHelper.ValidateProperty(utf8PropertyName); 111int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 127int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 148int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 154JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 171int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 177JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 241JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 275JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 324JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 373JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 382JsonWriterHelper.WriteDateTimeTrimmed(buffer, value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (13)
75JsonWriterHelper.ValidateProperty(propertyName); 100JsonWriterHelper.ValidateProperty(utf8PropertyName); 110int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 126int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 147int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 153JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 170int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 176JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 240JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 274JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 323JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 372JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 381JsonWriterHelper.WriteDateTimeOffsetTrimmed(buffer, value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (8)
75JsonWriterHelper.ValidateProperty(propertyName); 100JsonWriterHelper.ValidateProperty(utf8PropertyName); 110int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 126int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 147int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 153JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 170int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 176JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (12)
28JsonWriterHelper.ValidateDouble(value); 77JsonWriterHelper.ValidateProperty(propertyName); 78JsonWriterHelper.ValidateDouble(value); 103JsonWriterHelper.ValidateProperty(utf8PropertyName); 104JsonWriterHelper.ValidateDouble(value); 114int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 130int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 151int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 157JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 174int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 180JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 372JsonWriterHelper.ValidateDouble(value);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (11)
28JsonWriterHelper.ValidateSingle(value); 77JsonWriterHelper.ValidateProperty(propertyName); 78JsonWriterHelper.ValidateSingle(value); 103JsonWriterHelper.ValidateProperty(utf8PropertyName); 104JsonWriterHelper.ValidateSingle(value); 114int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 130int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 151int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 157JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 174int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 180JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs (14)
31JsonWriterHelper.ValidateProperty(propertyName); 32JsonWriterHelper.ValidateValue(utf8FormattedNumber); 33JsonWriterHelper.ValidateNumber(utf8FormattedNumber); 61JsonWriterHelper.ValidateProperty(utf8PropertyName); 62JsonWriterHelper.ValidateValue(utf8FormattedNumber); 63JsonWriterHelper.ValidateNumber(utf8FormattedNumber); 73JsonWriterHelper.ValidateValue(utf8FormattedNumber); 74JsonWriterHelper.ValidateNumber(utf8FormattedNumber); 84int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 100int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 121int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 127JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 144int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 150JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (8)
75JsonWriterHelper.ValidateProperty(propertyName); 100JsonWriterHelper.ValidateProperty(utf8PropertyName); 110int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 126int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 147int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 153JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 170int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 176JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (1)
222OperationStatus status = JsonWriterHelper.ToUtf8(escapedPropertyName, output.Slice(BytesPending), out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (10)
95JsonWriterHelper.ValidateProperty(propertyName); 120JsonWriterHelper.ValidateProperty(utf8PropertyName); 191JsonWriterHelper.ValidateProperty(propertyName); 217JsonWriterHelper.ValidateProperty(utf8PropertyName); 229int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 245int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 266int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 272JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 289int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 295JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (8)
75JsonWriterHelper.ValidateProperty(propertyName); 100JsonWriterHelper.ValidateProperty(utf8PropertyName); 183int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 199int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 220int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 226JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 243int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 249JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (53)
91JsonWriterHelper.ValidateProperty(propertyName); 93int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 119int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 131JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 240JsonWriterHelper.ValidateProperty(utf8PropertyName); 242int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 261JsonWriterHelper.ValidateProperty(utf8PropertyName); 278int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 290JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 512JsonWriterHelper.ValidatePropertyAndValue(propertyName, value); 536JsonWriterHelper.ValidatePropertyAndValue(utf8PropertyName, utf8Value); 597JsonWriterHelper.ValidateValue(value); 599int valueIdx = JsonWriterHelper.NeedsEscaping(value, _options.Encoder); 655JsonWriterHelper.ValidatePropertyAndValue(utf8PropertyName, value); 684JsonWriterHelper.ValidateValue(utf8Value); 686int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value, _options.Encoder); 742JsonWriterHelper.ValidatePropertyAndValue(propertyName, utf8Value); 771JsonWriterHelper.ValidateProperty(propertyName); 773int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 843JsonWriterHelper.ValidateProperty(utf8PropertyName); 845int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 901int length = JsonWriterHelper.GetMaxEscapedLength(utf8Value.Length, firstEscapeIndex); 907JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndex, _options.Encoder, out int written); 924int length = JsonWriterHelper.GetMaxEscapedLength(value.Length, firstEscapeIndex); 930JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndex, _options.Encoder, out int written); 947int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndex); 953JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndex, _options.Encoder, out int written); 970int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndex); 976JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndex, _options.Encoder, out int written); 988int valueIdx = JsonWriterHelper.NeedsEscaping(value, _options.Encoder); 989int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 1007int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value, _options.Encoder); 1008int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 1026int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value, _options.Encoder); 1027int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 1045int valueIdx = JsonWriterHelper.NeedsEscaping(value, _options.Encoder); 1046int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 1073int length = JsonWriterHelper.GetMaxEscapedLength(value.Length, firstEscapeIndexVal); 1085JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal, _options.Encoder, out int written); 1093int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 1105JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 1133int length = JsonWriterHelper.GetMaxEscapedLength(utf8Value.Length, firstEscapeIndexVal); 1145JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal, _options.Encoder, out int written); 1153int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 1165JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 1193int length = JsonWriterHelper.GetMaxEscapedLength(utf8Value.Length, firstEscapeIndexVal); 1205JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal, _options.Encoder, out int written); 1213int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 1225JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 1253int length = JsonWriterHelper.GetMaxEscapedLength(value.Length, firstEscapeIndexVal); 1265JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal, _options.Encoder, out int written); 1273int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 1285JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (8)
78JsonWriterHelper.ValidateProperty(propertyName); 104JsonWriterHelper.ValidateProperty(utf8PropertyName); 192int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder); 208int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder); 229int length = JsonWriterHelper.GetMaxEscapedLength(propertyName.Length, firstEscapeIndexProp); 235JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written); 252int length = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp); 258JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (5)
45JsonWriterHelper.ValidateValue(value); 96OperationStatus status = JsonWriterHelper.ToUtf8(value, output.Slice(BytesPending), out int written); 137OperationStatus status = JsonWriterHelper.ToUtf8(value, output.Slice(BytesPending), out int written); 162JsonWriterHelper.ValidateValue(utf8Value); 169if (!JsonWriterHelper.IsValidUtf8String(utf8Value))
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (2)
60JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 98JsonWriterHelper.WriteDateTimeTrimmed(output.Slice(BytesPending), value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (2)
61JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten); 99JsonWriterHelper.WriteDateTimeOffsetTrimmed(output.Slice(BytesPending), value, out int bytesWritten);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (1)
26JsonWriterHelper.ValidateDouble(value);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (1)
26JsonWriterHelper.ValidateSingle(value);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (2)
26JsonWriterHelper.ValidateValue(utf8FormattedNumber); 27JsonWriterHelper.ValidateNumber(utf8FormattedNumber);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (8)
74JsonWriterHelper.ValidateValue(value); 84int valueIdx = JsonWriterHelper.NeedsEscaping(value, _options.Encoder); 190int length = JsonWriterHelper.GetMaxEscapedLength(value.Length, firstEscapeIndexVal); 196JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal, _options.Encoder, out int written); 221JsonWriterHelper.ValidateValue(utf8Value); 231int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value, _options.Encoder); 337int length = JsonWriterHelper.GetMaxEscapedLength(utf8Value.Length, firstEscapeIndexVal); 343JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal, _options.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (8)
29JsonWriterHelper.ValidateValue(value); 122int escapeIdx = JsonWriterHelper.NeedsEscaping(value, _options.Encoder); 140int length = JsonWriterHelper.GetMaxEscapedLength(value.Length, firstEscapeIndexVal); 146JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal, _options.Encoder, out int consumed, out int written, isFinalSegment); 197JsonWriterHelper.ValidateValue(value); 291int escapeIdx = JsonWriterHelper.NeedsEscaping(utf8Value, _options.Encoder); 307int length = JsonWriterHelper.GetMaxEscapedLength(utf8Value.Length, firstEscapeIndexVal); 312JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal, _options.Encoder, out int consumed, out int written, isFinalSegment);