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

◆ WriteNumberEscapeProperty() [2/10]

void System.Text.Json.Utf8JsonWriter.WriteNumberEscapeProperty ( ReadOnlySpan< byte > utf8PropertyName,
double value,
int firstEscapeIndexProp )
inlineprivate

Definition at line 1582 of file Utf8JsonWriter.cs.

1583 {
1584 byte[] array = null;
1585 int maxEscapedLength = JsonWriterHelper.GetMaxEscapedLength(utf8PropertyName.Length, firstEscapeIndexProp);
1586 Span<byte> span = ((maxEscapedLength > 256) ? ((Span<byte>)(array = ArrayPool<byte>.Shared.Rent(maxEscapedLength))) : stackalloc byte[256]);
1587 Span<byte> destination = span;
1590 if (array != null)
1591 {
1593 }
1594 }
static ArrayPool< T > Shared
Definition ArrayPool.cs:7
void WriteNumberByOptions(ReadOnlySpan< char > propertyName, decimal value)

References System.Text.Json.Utf8JsonWriter._options, System.array, System.destination, System.Text.Json.Dictionary, System.Text.Json.JsonWriterOptions.Encoder, System.Text.Json.JsonWriterHelper.EscapeString(), System.Text.Json.JsonWriterHelper.GetMaxEscapedLength(), System.Buffers.ArrayPool< T >.Shared, System.value, and System.Text.Json.Utf8JsonWriter.WriteNumberByOptions().