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

◆ WriteNumberMinimized() [4/10]

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

Definition at line 2790 of file Utf8JsonWriter.cs.

2791 {
2792 int num = escapedPropertyName.Length + 20 + 3;
2793 int num2 = num + 1;
2795 {
2796 Grow(num2);
2797 }
2798 Span<byte> span = _memory.Span;
2799 if (_currentDepth < 0)
2800 {
2801 span[BytesPending++] = 44;
2802 }
2803 span[BytesPending++] = 34;
2804 escapedPropertyName.CopyTo(span.Slice(BytesPending));
2806 span[BytesPending++] = 34;
2807 span[BytesPending++] = 58;
2808 int bytesWritten;
2811 }
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.