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

◆ EnsurePushCapacity()

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

Definition at line 41 of file WriteStack.cs.

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

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

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