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

◆ WriteStringMinimized() [11/12]

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

Definition at line 3704 of file Utf8JsonWriter.cs.

3705 {
3706 int num = (escapedPropertyName.Length + escapedValue.Length) * 3 + 6;
3707 if (_memory.Length - BytesPending < num)
3708 {
3709 Grow(num);
3710 }
3711 Span<byte> span = _memory.Span;
3712 if (_currentDepth < 0)
3713 {
3714 span[BytesPending++] = 44;
3715 }
3716 span[BytesPending++] = 34;
3718 span[BytesPending++] = 34;
3719 span[BytesPending++] = 58;
3720 span[BytesPending++] = 34;
3722 span[BytesPending++] = 34;
3723 }
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().