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

◆ PushToArray()

void System.Text.Json.BitStack.PushToArray ( bool value)
inlineprivate

Definition at line 44 of file BitStack.cs.

45 {
46 if (_array == null)
47 {
48 _array = new int[2];
49 }
50 int number = _currentDepth - 64;
51 int remainder;
52 int num = Div32Rem(number, out remainder);
53 if (num >= _array.Length)
54 {
55 DoubleArray(num);
56 }
57 int num2 = _array[num];
58 num2 = ((!value) ? (num2 & ~(1 << remainder)) : (num2 | (1 << remainder)));
59 _array[num] = num2;
60 }
void DoubleArray(int minSize)
Definition BitStack.cs:88
static int Div32Rem(int number, out int remainder)
Definition BitStack.cs:107

References System.Text.Json.BitStack._array, System.Text.Json.BitStack._currentDepth, System.Text.Json.Dictionary, System.Text.Json.BitStack.Div32Rem(), System.Text.Json.BitStack.DoubleArray(), and System.value.

Referenced by System.Text.Json.BitStack.PushFalse(), and System.Text.Json.BitStack.PushTrue().