Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteStringHelperEscapeValue() [2/2]

void System.Text.Json.Utf8JsonWriter.WriteStringHelperEscapeValue ( ReadOnlySpan< byte > utf8PropertyName,
ReadOnlySpan< char > value )
inlineprivate

Definition at line 3215 of file Utf8JsonWriter.cs.

3216 {
3217 JsonWriterHelper.ValidateValue(value);
3218 int num = JsonWriterHelper.NeedsEscaping(value, _options.Encoder);
3219 if (num != -1)
3220 {
3222 }
3223 else
3224 {
3226 }
3228 _tokenType = JsonTokenType.String;
3229 }
void WriteStringByOptions(ReadOnlySpan< char > propertyName, DateTime value)
void WriteStringEscapeValueOnly(ReadOnlySpan< byte > escapedPropertyName, ReadOnlySpan< byte > utf8Value, int firstEscapeIndex)

References System.Text.Json.Utf8JsonWriter._options, System.Text.Json.Utf8JsonWriter._tokenType, System.Text.Json.Dictionary, System.Text.Json.JsonWriterOptions.Encoder, System.Text.Json.JsonWriterHelper.NeedsEscaping(), System.Text.Json.Utf8JsonWriter.SetFlagToAddListSeparatorBeforeNextItem(), System.Text.Json.JsonWriterHelper.ValidateValue(), System.value, System.Text.Json.Utf8JsonWriter.WriteStringByOptions(), and System.Text.Json.Utf8JsonWriter.WriteStringEscapeValueOnly().

Referenced by System.Text.Json.Utf8JsonWriter.WriteString(), and System.Text.Json.Utf8JsonWriter.WriteString().