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

◆ WriteStartIndented()

void System.Text.Json.Utf8JsonWriter.WriteStartIndented ( byte token)
inlineprivate

Definition at line 284 of file Utf8JsonWriter.cs.

285 {
287 int num = indentation + 1;
288 int num2 = num + 3;
290 {
291 Grow(num2);
292 }
293 Span<byte> span = _memory.Span;
294 if (_currentDepth < 0)
295 {
296 span[BytesPending++] = 44;
297 }
298 if (_tokenType != JsonTokenType.PropertyName)
299 {
300 if (_tokenType != 0)
301 {
303 }
304 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
306 }
307 span[BytesPending++] = token;
308 }
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.Memory< T >.Span, System.Text.Json.JsonWriterHelper.WriteIndentation(), and System.Text.Json.Utf8JsonWriter.WriteNewLine().

Referenced by System.Text.Json.Utf8JsonWriter.WriteStartSlow().