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

◆ WriteNumberValueMinimized() [2/6]

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

Definition at line 4592 of file Utf8JsonWriter.cs.

4593 {
4594 int num = 129;
4595 if (_memory.Length - BytesPending < num)
4596 {
4597 Grow(num);
4598 }
4599 Span<byte> span = _memory.Span;
4600 if (_currentDepth < 0)
4601 {
4602 span[BytesPending++] = 44;
4603 }
4604 int bytesWritten;
4605 bool flag = TryFormatDouble(value, span.Slice(BytesPending), out bytesWritten);
4607 }
void Grow(int requiredSize)
static bool TryFormatDouble(double value, Span< byte > destination, out int bytesWritten)
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.Text.Json.Utf8JsonWriter.TryFormatDouble(), and System.value.