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

◆ WriteNumberIndented() [10/10]

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

Definition at line 4095 of file Utf8JsonWriter.cs.

4096 {
4098 int num = indentation + escapedPropertyName.Length * 3 + 20 + 5 + s_newLineLength;
4099 if (_memory.Length - BytesPending < num)
4100 {
4101 Grow(num);
4102 }
4103 Span<byte> span = _memory.Span;
4104 if (_currentDepth < 0)
4105 {
4106 span[BytesPending++] = 44;
4107 }
4108 if (_tokenType != 0)
4109 {
4111 }
4112 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
4114 span[BytesPending++] = 34;
4116 span[BytesPending++] = 34;
4117 span[BytesPending++] = 58;
4118 span[BytesPending++] = 32;
4119 int bytesWritten;
4122 }
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)
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.Buffers.Text.Utf8Formatter.TryFormat(), System.value, System.Text.Json.JsonWriterHelper.WriteIndentation(), and System.Text.Json.Utf8JsonWriter.WriteNewLine().