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

◆ WritePropertyNameMinimized() [1/2]

void System.Text.Json.Utf8JsonWriter.WritePropertyNameMinimized ( ReadOnlySpan< byte > escapedPropertyName,
byte token )
inlineprivate

Definition at line 2237 of file Utf8JsonWriter.cs.

2238 {
2239 int num = escapedPropertyName.Length + 4;
2240 int num2 = num + 1;
2242 {
2243 Grow(num2);
2244 }
2245 Span<byte> span = _memory.Span;
2246 if (_currentDepth < 0)
2247 {
2248 span[BytesPending++] = 44;
2249 }
2250 span[BytesPending++] = 34;
2251 escapedPropertyName.CopyTo(span.Slice(BytesPending));
2253 span[BytesPending++] = 34;
2254 span[BytesPending++] = 58;
2255 span[BytesPending++] = token;
2256 }
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, and System.Memory< T >.Span.

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