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

◆ WriteStringIndentedPropertyName() [2/2]

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

Definition at line 2992 of file Utf8JsonWriter.cs.

2993 {
2996 if (_memory.Length - BytesPending < num)
2997 {
2998 Grow(num);
2999 }
3000 Span<byte> span = _memory.Span;
3001 if (_currentDepth < 0)
3002 {
3003 span[BytesPending++] = 44;
3004 }
3005 if (_tokenType != 0)
3006 {
3008 }
3009 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
3011 span[BytesPending++] = 34;
3013 span[BytesPending++] = 34;
3014 span[BytesPending++] = 58;
3015 span[BytesPending++] = 32;
3016 }
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().

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