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

◆ WriteNumberMinimized() [6/10]

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

Definition at line 1398 of file Utf8JsonWriter.cs.

1399 {
1400 int num = escapedPropertyName.Length * 3 + 31 + 4;
1401 if (_memory.Length - BytesPending < num)
1402 {
1403 Grow(num);
1404 }
1405 Span<byte> span = _memory.Span;
1406 if (_currentDepth < 0)
1407 {
1408 span[BytesPending++] = 44;
1409 }
1410 span[BytesPending++] = 34;
1412 span[BytesPending++] = 34;
1413 span[BytesPending++] = 58;
1414 int bytesWritten;
1417 }
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.

Referenced by System.Text.Json.Utf8JsonWriter.WriteNumberByOptions(), System.Text.Json.Utf8JsonWriter.WriteNumberByOptions(), System.Text.Json.Utf8JsonWriter.WriteNumberByOptions(), System.Text.Json.Utf8JsonWriter.WriteNumberByOptions(), System.Text.Json.Utf8JsonWriter.WriteNumberByOptions(), System.Text.Json.Utf8JsonWriter.WriteNumberByOptions(), System.Text.Json.Utf8JsonWriter.WriteNumberByOptions(), System.Text.Json.Utf8JsonWriter.WriteNumberByOptions(), System.Text.Json.Utf8JsonWriter.WriteNumberByOptions(), and System.Text.Json.Utf8JsonWriter.WriteNumberByOptions().