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

◆ WritePropertyNameMinimized() [2/2]

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

Definition at line 2287 of file Utf8JsonWriter.cs.

2288 {
2289 int num = escapedPropertyName.Length * 3 + 5;
2290 if (_memory.Length - BytesPending < num)
2291 {
2292 Grow(num);
2293 }
2294 Span<byte> span = _memory.Span;
2295 if (_currentDepth < 0)
2296 {
2297 span[BytesPending++] = 44;
2298 }
2299 span[BytesPending++] = 34;
2301 span[BytesPending++] = 34;
2302 span[BytesPending++] = 58;
2303 span[BytesPending++] = token;
2304 }
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().