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

◆ WriteStringHelperEscapeProperty() [1/2]

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

Definition at line 3316 of file Utf8JsonWriter.cs.

3317 {
3318 JsonWriterHelper.ValidateProperty(utf8PropertyName);
3319 int num = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.Encoder);
3320 if (num != -1)
3321 {
3323 }
3324 else
3325 {
3327 }
3329 _tokenType = JsonTokenType.String;
3330 }
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().