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

◆ WriteStringIndented() [4/12]

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

Definition at line 3822 of file Utf8JsonWriter.cs.

3823 {
3826 int num2 = num + 1 + s_newLineLength;
3828 {
3829 Grow(num2);
3830 }
3831 Span<byte> span = _memory.Span;
3832 if (_currentDepth < 0)
3833 {
3834 span[BytesPending++] = 44;
3835 }
3836 if (_tokenType != 0)
3837 {
3839 }
3840 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
3842 span[BytesPending++] = 34;
3843 escapedPropertyName.CopyTo(span.Slice(BytesPending));
3845 span[BytesPending++] = 34;
3846 span[BytesPending++] = 58;
3847 span[BytesPending++] = 32;
3848 span[BytesPending++] = 34;
3849 escapedValue.CopyTo(span.Slice(BytesPending));
3850 BytesPending += escapedValue.Length;
3851 span[BytesPending++] = 34;
3852 }
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.Text.Json.JsonWriterHelper.WriteIndentation(), and System.Text.Json.Utf8JsonWriter.WriteNewLine().