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

◆ WriteStringMinimized() [10/12]

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

Definition at line 3749 of file Utf8JsonWriter.cs.

3750 {
3752 if (_memory.Length - BytesPending < num)
3753 {
3754 Grow(num);
3755 }
3756 Span<byte> span = _memory.Span;
3757 if (_currentDepth < 0)
3758 {
3759 span[BytesPending++] = 44;
3760 }
3761 span[BytesPending++] = 34;
3763 span[BytesPending++] = 34;
3764 span[BytesPending++] = 58;
3765 span[BytesPending++] = 34;
3766 escapedValue.CopyTo(span.Slice(BytesPending));
3767 BytesPending += escapedValue.Length;
3768 span[BytesPending++] = 34;
3769 }
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, and System.Text.Json.Utf8JsonWriter.TranscodeAndWrite().