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

◆ WriteStringMinimized() [5/12]

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

Definition at line 3771 of file Utf8JsonWriter.cs.

3772 {
3774 if (_memory.Length - BytesPending < num)
3775 {
3776 Grow(num);
3777 }
3778 Span<byte> span = _memory.Span;
3779 if (_currentDepth < 0)
3780 {
3781 span[BytesPending++] = 44;
3782 }
3783 span[BytesPending++] = 34;
3784 escapedPropertyName.CopyTo(span.Slice(BytesPending));
3786 span[BytesPending++] = 34;
3787 span[BytesPending++] = 58;
3788 span[BytesPending++] = 34;
3790 span[BytesPending++] = 34;
3791 }
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().