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

◆ WriteStringValueMinimized() [1/3]

void System.Text.Json.Utf8JsonWriter.WriteStringValueMinimized ( DateTime value)
inlineprivate

Definition at line 4393 of file Utf8JsonWriter.cs.

4394 {
4395 int num = 36;
4396 if (_memory.Length - BytesPending < num)
4397 {
4398 Grow(num);
4399 }
4400 Span<byte> span = _memory.Span;
4401 if (_currentDepth < 0)
4402 {
4403 span[BytesPending++] = 44;
4404 }
4405 span[BytesPending++] = 34;
4406 JsonWriterHelper.WriteDateTimeTrimmed(span.Slice(BytesPending), value, out var bytesWritten);
4408 span[BytesPending++] = 34;
4409 }
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().

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