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

◆ WriteNumberMinimized() [1/10]

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

Definition at line 1419 of file Utf8JsonWriter.cs.

1420 {
1421 int num = escapedPropertyName.Length + 31 + 3;
1422 int num2 = num + 1;
1424 {
1425 Grow(num2);
1426 }
1427 Span<byte> span = _memory.Span;
1428 if (_currentDepth < 0)
1429 {
1430 span[BytesPending++] = 44;
1431 }
1432 span[BytesPending++] = 34;
1433 escapedPropertyName.CopyTo(span.Slice(BytesPending));
1435 span[BytesPending++] = 34;
1436 span[BytesPending++] = 58;
1437 int bytesWritten;
1440 }
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.