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

◆ WriteStringMinimizedPropertyName() [2/2]

void System.Text.Json.Utf8JsonWriter.WriteStringMinimizedPropertyName ( ReadOnlySpan< char > escapedPropertyName)
inlineprivate

Definition at line 2974 of file Utf8JsonWriter.cs.

2975 {
2976 int num = escapedPropertyName.Length * 3 + 4;
2977 if (_memory.Length - BytesPending < num)
2978 {
2979 Grow(num);
2980 }
2981 Span<byte> span = _memory.Span;
2982 if (_currentDepth < 0)
2983 {
2984 span[BytesPending++] = 44;
2985 }
2986 span[BytesPending++] = 34;
2988 span[BytesPending++] = 34;
2989 span[BytesPending++] = 58;
2990 }
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().

Referenced by System.Text.Json.Utf8JsonWriter.WriteStringByOptionsPropertyName(), and System.Text.Json.Utf8JsonWriter.WriteStringByOptionsPropertyName().