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

◆ WriteNumberMinimized() [10/10]

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

Definition at line 4051 of file Utf8JsonWriter.cs.

4052 {
4053 int num = escapedPropertyName.Length * 3 + 20 + 4;
4054 if (_memory.Length - BytesPending < num)
4055 {
4056 Grow(num);
4057 }
4058 Span<byte> span = _memory.Span;
4059 if (_currentDepth < 0)
4060 {
4061 span[BytesPending++] = 44;
4062 }
4063 span[BytesPending++] = 34;
4065 span[BytesPending++] = 34;
4066 span[BytesPending++] = 58;
4067 int bytesWritten;
4070 }
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.