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

◆ WriteStringMinimized() [9/12]

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

Definition at line 2068 of file Utf8JsonWriter.cs.

2069 {
2070 int num = escapedPropertyName.Length * 3 + 36 + 6;
2071 if (_memory.Length - BytesPending < num)
2072 {
2073 Grow(num);
2074 }
2075 Span<byte> span = _memory.Span;
2076 if (_currentDepth < 0)
2077 {
2078 span[BytesPending++] = 44;
2079 }
2080 span[BytesPending++] = 34;
2082 span[BytesPending++] = 34;
2083 span[BytesPending++] = 58;
2084 span[BytesPending++] = 34;
2085 int bytesWritten;
2088 span[BytesPending++] = 34;
2089 }
static bool TryFormat(bool value, Span< byte > destination, out int bytesWritten, StandardFormat format=default(StandardFormat))
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, System.Text.Json.Utf8JsonWriter.TranscodeAndWrite(), System.Buffers.Text.Utf8Formatter.TryFormat(), and System.value.