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

◆ WriteLiteralIndented() [3/3]

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

Definition at line 2574 of file Utf8JsonWriter.cs.

2575 {
2578 if (_memory.Length - BytesPending < num)
2579 {
2580 Grow(num);
2581 }
2582 Span<byte> span = _memory.Span;
2583 if (_currentDepth < 0)
2584 {
2585 span[BytesPending++] = 44;
2586 }
2587 if (_tokenType != 0)
2588 {
2590 }
2591 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
2593 span[BytesPending++] = 34;
2595 span[BytesPending++] = 34;
2596 span[BytesPending++] = 58;
2597 span[BytesPending++] = 32;
2598 value.CopyTo(span.Slice(BytesPending));
2599 BytesPending += value.Length;
2600 }
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.value, System.Text.Json.JsonWriterHelper.WriteIndentation(), and System.Text.Json.Utf8JsonWriter.WriteNewLine().

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