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

◆ WritePropertyNameIndented() [1/2]

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

Definition at line 2258 of file Utf8JsonWriter.cs.

2259 {
2262 int num2 = num + 1 + s_newLineLength;
2264 {
2265 Grow(num2);
2266 }
2267 Span<byte> span = _memory.Span;
2268 if (_currentDepth < 0)
2269 {
2270 span[BytesPending++] = 44;
2271 }
2272 if (_tokenType != 0)
2273 {
2275 }
2276 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
2278 span[BytesPending++] = 34;
2279 escapedPropertyName.CopyTo(span.Slice(BytesPending));
2281 span[BytesPending++] = 34;
2282 span[BytesPending++] = 58;
2283 span[BytesPending++] = 32;
2284 span[BytesPending++] = token;
2285 }
static readonly int s_newLineLength
void Grow(int requiredSize)
void WriteNewLine(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._tokenType, System.Text.Json.Utf8JsonWriter.BytesPending, System.Text.Json.Dictionary, System.Text.Json.Utf8JsonWriter.Grow(), System.Text.Json.Utf8JsonWriter.Indentation, System.Memory< T >.Length, System.Text.Json.Utf8JsonWriter.s_newLineLength, System.Memory< T >.Span, System.Text.Json.JsonWriterHelper.WriteIndentation(), and System.Text.Json.Utf8JsonWriter.WriteNewLine().

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