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

◆ WriteNumberValueIndented() [6/6]

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

Definition at line 5437 of file Utf8JsonWriter.cs.

5438 {
5440 int num = indentation + 20 + 1 + s_newLineLength;
5441 if (_memory.Length - BytesPending < num)
5442 {
5443 Grow(num);
5444 }
5445 Span<byte> span = _memory.Span;
5446 if (_currentDepth < 0)
5447 {
5448 span[BytesPending++] = 44;
5449 }
5450 if (_tokenType != JsonTokenType.PropertyName)
5451 {
5452 if (_tokenType != 0)
5453 {
5455 }
5456 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
5458 }
5459 int bytesWritten;
5462 }
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().