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

◆ Parse() [2/7]

static JsonDocument System.Text.Json.JsonDocument.Parse ( ReadOnlyMemory< byte > utf8Json,
JsonReaderOptions readerOptions,
byte[] extraRentedArrayPoolBytes = null,
PooledByteBufferWriter extraPooledByteBufferWriter = null )
inlinestaticprivate

Definition at line 1420 of file JsonDocument.cs.

1421 {
1422 ReadOnlySpan<byte> span = utf8Json.Span;
1423 MetadataDb database = MetadataDb.CreateRented(utf8Json.Length, convertToAlloc: false);
1424 StackRowStack stack = new StackRowStack(512);
1425 try
1426 {
1428 }
1429 catch
1430 {
1431 database.Dispose();
1432 throw;
1433 }
1434 finally
1435 {
1436 stack.Dispose();
1437 }
1439 }
JsonDocument(ReadOnlyMemory< byte > utf8Json, MetadataDb parsedData, byte[] extraRentedArrayPoolBytes=null, PooledByteBufferWriter extraPooledByteBufferWriter=null, bool isDisposable=true)
static void Parse(ReadOnlySpan< byte > utf8JsonSpan, JsonReaderOptions readerOptions, ref MetadataDb database, ref StackRowStack stack)

References System.Text.Json.JsonDocument.JsonDocument(), System.Text.Json.JsonDocument.MetadataDb.CreateRented(), System.Text.Json.Dictionary, System.Text.Json.JsonDocument.StackRowStack.Dispose(), and System.Text.Json.JsonDocument.Parse().