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

◆ WriteNumberValueMinimized() [4/6]

void System.Text.Json.Utf8JsonWriter.WriteNumberValueMinimized ( long value)
inlineprivate

Definition at line 5122 of file Utf8JsonWriter.cs.

5123 {
5124 int num = 21;
5125 if (_memory.Length - BytesPending < num)
5126 {
5127 Grow(num);
5128 }
5129 Span<byte> span = _memory.Span;
5130 if (_currentDepth < 0)
5131 {
5132 span[BytesPending++] = 44;
5133 }
5134 int bytesWritten;
5137 }
static bool TryFormat(bool value, Span< byte > destination, out int bytesWritten, StandardFormat format=default(StandardFormat))
void Grow(int requiredSize)
unsafe Span< T > Span
Definition Memory.cs:28

References System.Text.Json.Utf8JsonWriter._currentDepth, System.Text.Json.Utf8JsonWriter._memory, System.Text.Json.Utf8JsonWriter.BytesPending, System.Text.Json.Dictionary, System.Text.Json.Utf8JsonWriter.Grow(), System.Memory< T >.Length, System.Memory< T >.Span, System.Buffers.Text.Utf8Formatter.TryFormat(), and System.value.