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

◆ WriteStringMinimized() [4/12]

void System.Text.Json.Utf8JsonWriter.WriteStringMinimized ( ReadOnlySpan< byte > escapedPropertyName,
ReadOnlySpan< byte > escapedValue )
inlineprivate

Definition at line 3725 of file Utf8JsonWriter.cs.

3726 {
3728 int num2 = num + 1;
3730 {
3731 Grow(num2);
3732 }
3733 Span<byte> span = _memory.Span;
3734 if (_currentDepth < 0)
3735 {
3736 span[BytesPending++] = 44;
3737 }
3738 span[BytesPending++] = 34;
3739 escapedPropertyName.CopyTo(span.Slice(BytesPending));
3741 span[BytesPending++] = 34;
3742 span[BytesPending++] = 58;
3743 span[BytesPending++] = 34;
3744 escapedValue.CopyTo(span.Slice(BytesPending));
3745 BytesPending += escapedValue.Length;
3746 span[BytesPending++] = 34;
3747 }
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, and System.Memory< T >.Span.