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

◆ FirstCallToGetMemory()

void System.Text.Json.Utf8JsonWriter.FirstCallToGetMemory ( int requiredSize)
inlineprivate

Definition at line 605 of file Utf8JsonWriter.cs.

606 {
607 int num = Math.Max(256, requiredSize);
608 if (_stream != null)
609 {
611 return;
612 }
614 if (_memory.Length < num)
615 {
616 ThrowHelper.ThrowInvalidOperationException_NeedLargerSpan();
617 }
618 }
Memory< T > GetMemory(int sizeHint=0)
IBufferWriter< byte > _output
ArrayBufferWriter< byte > _arrayBufferWriter
Memory< T > GetMemory(int sizeHint=0)

References System.Text.Json.Utf8JsonWriter._arrayBufferWriter, System.Text.Json.Utf8JsonWriter._memory, System.Text.Json.Utf8JsonWriter._output, System.Text.Json.Utf8JsonWriter._stream, System.Text.Json.Dictionary, System.Buffers.ArrayBufferWriter< T >.GetMemory(), System.Buffers.IBufferWriter< T >.GetMemory(), System.Memory< T >.Length, System.Math.Max(), and System.Text.Json.ThrowHelper.ThrowInvalidOperationException_NeedLargerSpan().

Referenced by System.Text.Json.Utf8JsonWriter.Grow().