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

◆ WriteStringIndented() [10/12]

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

Definition at line 3854 of file Utf8JsonWriter.cs.

3855 {
3858 if (_memory.Length - BytesPending < num)
3859 {
3860 Grow(num);
3861 }
3862 Span<byte> span = _memory.Span;
3863 if (_currentDepth < 0)
3864 {
3865 span[BytesPending++] = 44;
3866 }
3867 if (_tokenType != 0)
3868 {
3870 }
3871 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
3873 span[BytesPending++] = 34;
3875 span[BytesPending++] = 34;
3876 span[BytesPending++] = 58;
3877 span[BytesPending++] = 32;
3878 span[BytesPending++] = 34;
3879 escapedValue.CopyTo(span.Slice(BytesPending));
3880 BytesPending += escapedValue.Length;
3881 span[BytesPending++] = 34;
3882 }
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().