Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ WritePropertyNameIndented() [2/2]

void System.Text.Json.Utf8JsonWriter.WritePropertyNameIndented ( ReadOnlySpan< char > escapedPropertyName,
byte token )
inlineprivate

Definition at line 2306 of file Utf8JsonWriter.cs.

2307 {
2310 if (_memory.Length - BytesPending < num)
2311 {
2312 Grow(num);
2313 }
2314 Span<byte> span = _memory.Span;
2315 if (_currentDepth < 0)
2316 {
2317 span[BytesPending++] = 44;
2318 }
2319 if (_tokenType != 0)
2320 {
2322 }
2323 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
2325 span[BytesPending++] = 34;
2327 span[BytesPending++] = 34;
2328 span[BytesPending++] = 58;
2329 span[BytesPending++] = 32;
2330 span[BytesPending++] = token;
2331 }
static readonly int s_newLineLength
void Grow(int requiredSize)
void WriteNewLine(Span< byte > output)
void TranscodeAndWrite(ReadOnlySpan< char > escapedPropertyName, Span< byte > output)
unsafe Span< T > Span
Definition Memory.cs:28

References System.Text.Json.Utf8JsonWriter._currentDepth, System.Text.Json.Utf8JsonWriter._memory, System.Text.Json.Utf8JsonWriter._tokenType, System.Text.Json.Utf8JsonWriter.BytesPending, System.Text.Json.Dictionary, System.Text.Json.Utf8JsonWriter.Grow(), System.Text.Json.Utf8JsonWriter.Indentation, System.Memory< T >.Length, System.Text.Json.Utf8JsonWriter.s_newLineLength, System.Memory< T >.Span, System.Text.Json.Utf8JsonWriter.TranscodeAndWrite(), System.Text.Json.JsonWriterHelper.WriteIndentation(), and System.Text.Json.Utf8JsonWriter.WriteNewLine().