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

◆ WriteNumberValueMinimized() [3/6]

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

Definition at line 4688 of file Utf8JsonWriter.cs.

4689 {
4690 int num = 129;
4691 if (_memory.Length - BytesPending < num)
4692 {
4693 Grow(num);
4694 }
4695 Span<byte> span = _memory.Span;
4696 if (_currentDepth < 0)
4697 {
4698 span[BytesPending++] = 44;
4699 }
4700 int bytesWritten;
4701 bool flag = TryFormatSingle(value, span.Slice(BytesPending), out bytesWritten);
4703 }
void Grow(int requiredSize)
static bool TryFormatSingle(float 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.TryFormatSingle(), and System.value.