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

◆ WriteLiteralIndented() [1/3]

void System.Text.Json.Utf8JsonWriter.WriteLiteralIndented ( ReadOnlySpan< byte > escapedPropertyName,
ReadOnlySpan< byte > value )
inlineprivate

Definition at line 2602 of file Utf8JsonWriter.cs.

2603 {
2606 int num2 = num + 1 + s_newLineLength;
2608 {
2609 Grow(num2);
2610 }
2611 Span<byte> span = _memory.Span;
2612 if (_currentDepth < 0)
2613 {
2614 span[BytesPending++] = 44;
2615 }
2616 if (_tokenType != 0)
2617 {
2619 }
2620 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
2622 span[BytesPending++] = 34;
2623 escapedPropertyName.CopyTo(span.Slice(BytesPending));
2625 span[BytesPending++] = 34;
2626 span[BytesPending++] = 58;
2627 span[BytesPending++] = 32;
2628 value.CopyTo(span.Slice(BytesPending));
2629 BytesPending += value.Length;
2630 }
static readonly int s_newLineLength
void Grow(int requiredSize)
void WriteNewLine(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.value, System.Text.Json.JsonWriterHelper.WriteIndentation(), and System.Text.Json.Utf8JsonWriter.WriteNewLine().