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

◆ WriteNumberValueMinimized() [1/6]

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

Definition at line 4521 of file Utf8JsonWriter.cs.

4522 {
4523 int num = 32;
4524 if (_memory.Length - BytesPending < num)
4525 {
4526 Grow(num);
4527 }
4528 Span<byte> span = _memory.Span;
4529 if (_currentDepth < 0)
4530 {
4531 span[BytesPending++] = 44;
4532 }
4533 int bytesWritten;
4536 }
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.

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().