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

◆ WriteStringValueIndented() [2/3]

void System.Text.Json.Utf8JsonWriter.WriteStringValueIndented ( DateTimeOffset value)
inlineprivate

Definition at line 4475 of file Utf8JsonWriter.cs.

4476 {
4478 int num = indentation + 33 + 3 + s_newLineLength;
4479 if (_memory.Length - BytesPending < num)
4480 {
4481 Grow(num);
4482 }
4483 Span<byte> span = _memory.Span;
4484 if (_currentDepth < 0)
4485 {
4486 span[BytesPending++] = 44;
4487 }
4488 if (_tokenType != JsonTokenType.PropertyName)
4489 {
4490 if (_tokenType != 0)
4491 {
4493 }
4494 JsonWriterHelper.WriteIndentation(span.Slice(BytesPending), indentation);
4496 }
4497 span[BytesPending++] = 34;
4498 JsonWriterHelper.WriteDateTimeOffsetTrimmed(span.Slice(BytesPending), value, out var bytesWritten);
4500 span[BytesPending++] = 34;
4501 }
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.value, System.Text.Json.JsonWriterHelper.WriteDateTimeOffsetTrimmed(), System.Text.Json.JsonWriterHelper.WriteIndentation(), and System.Text.Json.Utf8JsonWriter.WriteNewLine().