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

◆ WriteNumberMinimized() [5/10]

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

Definition at line 4072 of file Utf8JsonWriter.cs.

4073 {
4074 int num = escapedPropertyName.Length + 20 + 3;
4075 int num2 = num + 1;
4077 {
4078 Grow(num2);
4079 }
4080 Span<byte> span = _memory.Span;
4081 if (_currentDepth < 0)
4082 {
4083 span[BytesPending++] = 44;
4084 }
4085 span[BytesPending++] = 34;
4086 escapedPropertyName.CopyTo(span.Slice(BytesPending));
4088 span[BytesPending++] = 34;
4089 span[BytesPending++] = 58;
4090 int bytesWritten;
4093 }
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.