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

◆ WriteNullSection()

void System.Text.Json.Utf8JsonWriter.WriteNullSection ( ReadOnlySpan< byte > escapedPropertyNameSection)
inlinepackage

Definition at line 2349 of file Utf8JsonWriter.cs.

2350 {
2351 if (_options.Indented)
2352 {
2353 ReadOnlySpan<byte> utf8PropertyName = escapedPropertyNameSection.Slice(1, escapedPropertyNameSection.Length - 3);
2354 WriteLiteralHelper(utf8PropertyName, JsonConstants.NullValue);
2355 _tokenType = JsonTokenType.Null;
2356 }
2357 else
2358 {
2359 ReadOnlySpan<byte> nullValue = JsonConstants.NullValue;
2362 _tokenType = JsonTokenType.Null;
2363 }
2364 }
void WriteLiteralHelper(ReadOnlySpan< byte > utf8PropertyName, ReadOnlySpan< byte > value)
void WriteLiteralSection(ReadOnlySpan< byte > escapedPropertyNameSection, ReadOnlySpan< byte > value)

References System.Text.Json.Utf8JsonWriter._options, System.Text.Json.Utf8JsonWriter._tokenType, System.Text.Json.Dictionary, System.Text.Json.JsonWriterOptions.Indented, System.Text.Json.JsonConstants.NullValue, System.Text.Json.Utf8JsonWriter.SetFlagToAddListSeparatorBeforeNextItem(), System.ReadOnlySpan< T >.Slice(), System.Text.Json.Utf8JsonWriter.WriteLiteralHelper(), and System.Text.Json.Utf8JsonWriter.WriteLiteralSection().