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

◆ EnsurePushCapacity()

void System.Text.Json.ReadStack.EnsurePushCapacity ( )
inlineprivate

Definition at line 41 of file ReadStack.cs.

42 {
43 if (_stack == null)
44 {
45 _stack = new ReadStackFrame[4];
46 }
47 else if (_count - 1 == _stack.Length)
48 {
49 Array.Resize(ref _stack, 2 * _stack.Length);
50 }
51 }
ReadStackFrame[] _stack
Definition ReadStack.cs:21

References System.Text.Json.ReadStack._count, and System.Text.Json.ReadStack._stack.

Referenced by System.Text.Json.ReadStack.Pop(), and System.Text.Json.ReadStack.Push().