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

◆ WriteStringMinimized() [1/12]

void System.Text.Json.Utf8JsonWriter.WriteStringMinimized ( ReadOnlySpan< byte > escapedPropertyName,
DateTime value )
inlineprivate

Definition at line 972 of file Utf8JsonWriter.cs.

973 {
974 int num = escapedPropertyName.Length + 33 + 5;
975 int num2 = num + 1;
977 {
978 Grow(num2);
979 }
980 Span<byte> span = _memory.Span;
981 if (_currentDepth < 0)
982 {
983 span[BytesPending++] = 44;
984 }
985 span[BytesPending++] = 34;
988 span[BytesPending++] = 34;
989 span[BytesPending++] = 58;
990 span[BytesPending++] = 34;
991 JsonWriterHelper.WriteDateTimeTrimmed(span.Slice(BytesPending), value, out var bytesWritten);
993 span[BytesPending++] = 34;
994 }
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, System.Memory< T >.Span, System.value, and System.Text.Json.JsonWriterHelper.WriteDateTimeTrimmed().