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

◆ WriteNumberValueIndented() [1/6]

void System.Text.Json.Utf8JsonWriter.WriteNumberValueIndented ( decimal value)
inlineprivate

Definition at line 4538 of file Utf8JsonWriter.cs.

4539 {
4541 int num = indentation + 31 + 1 + s_newLineLength;
4542 if (_memory.Length - BytesPending < num)
4543 {
4544 Grow(num);
4545 }
4546 Span<byte> span = _memory.Span;
4547 if (_currentDepth < 0)
4548 {
4549 span[BytesPending++] = 44;
4550 }
4551 if (_tokenType != JsonTokenType.PropertyName)
4552 {
4553 if (_tokenType != 0)
4554 {
4556 }
4557 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
4559 }
4560 int bytesWritten;
4563 }
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().

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