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

◆ Pop()

void System.Text.Json.WriteStack.Pop ( bool success)
inline

Definition at line 105 of file WriteStack.cs.

106 {
107 if (!success)
108 {
109 if (_continuationCount == 0)
110 {
111 if (_count == 1)
112 {
114 _count = 0;
115 return;
116 }
119 }
120 else if (--_count == 0)
121 {
122 return;
123 }
125 Current = _stack[_count - 1];
126 }
127 else if (--_count > 0)
128 {
129 Current = _stack[_count - 1];
130 }
131 }
WriteStackFrame Current
Definition WriteStack.cs:15
WriteStackFrame[] _stack
Definition WriteStack.cs:17

References System.Text.Json.WriteStack._continuationCount, System.Text.Json.WriteStack._count, System.Text.Json.WriteStack._stack, System.Text.Json.WriteStack.Current, and System.Text.Json.WriteStack.EnsurePushCapacity().