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

◆ WriteNumberIndented() [4/10]

void System.Text.Json.Utf8JsonWriter.WriteNumberIndented ( ReadOnlySpan< byte > escapedPropertyName,
long value )
inlineprivate

Definition at line 2842 of file Utf8JsonWriter.cs.

2843 {
2845 int num = indentation + escapedPropertyName.Length + 20 + 4;
2846 int num2 = num + 1 + s_newLineLength;
2848 {
2849 Grow(num2);
2850 }
2851 Span<byte> span = _memory.Span;
2852 if (_currentDepth < 0)
2853 {
2854 span[BytesPending++] = 44;
2855 }
2856 if (_tokenType != 0)
2857 {
2859 }
2860 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
2862 span[BytesPending++] = 34;
2863 escapedPropertyName.CopyTo(span.Slice(BytesPending));
2865 span[BytesPending++] = 34;
2866 span[BytesPending++] = 58;
2867 span[BytesPending++] = 32;
2868 int bytesWritten;
2871 }
static bool TryFormat(bool value, Span< byte > destination, out int bytesWritten, StandardFormat format=default(StandardFormat))
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.Buffers.Text.Utf8Formatter.TryFormat(), System.value, System.Text.Json.JsonWriterHelper.WriteIndentation(), and System.Text.Json.Utf8JsonWriter.WriteNewLine().