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

◆ WriteStringMinimized() [3/12]

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

Definition at line 2091 of file Utf8JsonWriter.cs.

2092 {
2093 int num = escapedPropertyName.Length + 36 + 5;
2094 int num2 = num + 1;
2096 {
2097 Grow(num2);
2098 }
2099 Span<byte> span = _memory.Span;
2100 if (_currentDepth < 0)
2101 {
2102 span[BytesPending++] = 44;
2103 }
2104 span[BytesPending++] = 34;
2105 escapedPropertyName.CopyTo(span.Slice(BytesPending));
2107 span[BytesPending++] = 34;
2108 span[BytesPending++] = 58;
2109 span[BytesPending++] = 34;
2110 int bytesWritten;
2113 span[BytesPending++] = 34;
2114 }
static bool TryFormat(bool value, Span< byte > destination, out int bytesWritten, StandardFormat format=default(StandardFormat))
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, System.Memory< T >.Span, System.Buffers.Text.Utf8Formatter.TryFormat(), and System.value.