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

◆ WriteStringIndented() [5/12]

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

Definition at line 3884 of file Utf8JsonWriter.cs.

3885 {
3888 if (_memory.Length - BytesPending < num)
3889 {
3890 Grow(num);
3891 }
3892 Span<byte> span = _memory.Span;
3893 if (_currentDepth < 0)
3894 {
3895 span[BytesPending++] = 44;
3896 }
3897 if (_tokenType != 0)
3898 {
3900 }
3901 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
3903 span[BytesPending++] = 34;
3904 escapedPropertyName.CopyTo(span.Slice(BytesPending));
3906 span[BytesPending++] = 34;
3907 span[BytesPending++] = 58;
3908 span[BytesPending++] = 32;
3909 span[BytesPending++] = 34;
3911 span[BytesPending++] = 34;
3912 }
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().