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

◆ WriteStringHelperEscapeValue() [1/2]

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

Definition at line 3249 of file Utf8JsonWriter.cs.

3250 {
3251 JsonWriterHelper.ValidateValue(utf8Value);
3252 int num = JsonWriterHelper.NeedsEscaping(utf8Value, _options.Encoder);
3253 if (num != -1)
3254 {
3256 }
3257 else
3258 {
3260 }
3262 _tokenType = JsonTokenType.String;
3263 }
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.Text.Json.Utf8JsonWriter.WriteStringByOptions(), and System.Text.Json.Utf8JsonWriter.WriteStringEscapeValueOnly().