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

◆ WriteNumberMinimized() [9/10]

void System.Text.Json.Utf8JsonWriter.WriteNumberMinimized ( ReadOnlySpan< char > escapedPropertyName,
long value )
inlineprivate

Definition at line 2769 of file Utf8JsonWriter.cs.

2770 {
2771 int num = escapedPropertyName.Length * 3 + 20 + 4;
2772 if (_memory.Length - BytesPending < num)
2773 {
2774 Grow(num);
2775 }
2776 Span<byte> span = _memory.Span;
2777 if (_currentDepth < 0)
2778 {
2779 span[BytesPending++] = 44;
2780 }
2781 span[BytesPending++] = 34;
2783 span[BytesPending++] = 34;
2784 span[BytesPending++] = 58;
2785 int bytesWritten;
2788 }
static bool TryFormat(bool value, Span< byte > destination, out int bytesWritten, StandardFormat format=default(StandardFormat))
void Grow(int requiredSize)
void TranscodeAndWrite(ReadOnlySpan< char > escapedPropertyName, 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.BytesPending, System.Text.Json.Dictionary, System.Text.Json.Utf8JsonWriter.Grow(), System.Memory< T >.Length, System.Memory< T >.Span, System.Text.Json.Utf8JsonWriter.TranscodeAndWrite(), System.Buffers.Text.Utf8Formatter.TryFormat(), and System.value.