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

◆ NextSet()

int System.Xml.Schema.BitSet.NextSet ( int startFrom)
inline

Definition at line 68 of file BitSet.cs.

69 {
70 int num = startFrom + 1;
71 if (num == _count)
72 {
73 return -1;
74 }
75 int num2 = Subscript(num);
76 num &= 0x1F;
77 uint num3;
78 for (num3 = _bits[num2] >> num; num3 == 0; num3 = _bits[num2])
79 {
80 if (++num2 == _bits.Length)
81 {
82 return -1;
83 }
84 num = 0;
85 }
86 while ((num3 & 1) == 0)
87 {
88 num3 >>= 1;
89 num++;
90 }
91 return (num2 << 5) + num;
92 }
readonly int _count
Definition BitSet.cs:7
int Subscript(int bitIndex)
Definition BitSet.cs:203

References System.Xml.Schema.BitSet._bits, System.Xml.Schema.BitSet._count, System.Xml.Dictionary, and System.Xml.Schema.BitSet.Subscript().

Referenced by System.Xml.Schema.ParticleContentValidator.CheckCMUPAWithLeafRangeNodes(), System.Xml.Schema.ParticleContentValidator.CheckUniqueParticleAttribution(), System.Xml.Schema.PlusNode.ConstructPos(), System.Xml.Schema.StarNode.ConstructPos(), and System.Xml.Schema.RangeContentValidator.ValidateElement().