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

◆ WriteStringIndentedPropertyName() [1/2]

void System.Text.Json.Utf8JsonWriter.WriteStringIndentedPropertyName ( ReadOnlySpan< byte > escapedPropertyName)
inlineprivate

Definition at line 3121 of file Utf8JsonWriter.cs.

3122 {
3125 int num2 = num + 1 + s_newLineLength;
3127 {
3128 Grow(num2);
3129 }
3130 Span<byte> span = _memory.Span;
3131 if (_currentDepth < 0)
3132 {
3133 span[BytesPending++] = 44;
3134 }
3135 if (_tokenType != 0)
3136 {
3138 }
3139 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
3141 span[BytesPending++] = 34;
3142 escapedPropertyName.CopyTo(span.Slice(BytesPending));
3144 span[BytesPending++] = 34;
3145 span[BytesPending++] = 58;
3146 span[BytesPending++] = 32;
3147 }
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().