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

◆ WriteStringHelperEscapeProperty() [2/2]

void System.Text.Json.Utf8JsonWriter.WriteStringHelperEscapeProperty ( ReadOnlySpan< char > propertyName,
ReadOnlySpan< byte > utf8Value )
inlineprivate

Definition at line 3283 of file Utf8JsonWriter.cs.

3284 {
3285 JsonWriterHelper.ValidateProperty(propertyName);
3286 int num = JsonWriterHelper.NeedsEscaping(propertyName, _options.Encoder);
3287 if (num != -1)
3288 {
3290 }
3291 else
3292 {
3294 }
3296 _tokenType = JsonTokenType.String;
3297 }
void WriteStringEscapePropertyOnly(ReadOnlySpan< char > propertyName, ReadOnlySpan< byte > escapedValue, int firstEscapeIndex)
void WriteStringByOptions(ReadOnlySpan< char > propertyName, DateTime value)

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.ValidateProperty(), System.Text.Json.Utf8JsonWriter.WriteStringByOptions(), and System.Text.Json.Utf8JsonWriter.WriteStringEscapePropertyOnly().

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