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

◆ EnsureLength()

void System.Xml.Schema.BitSet.EnsureLength ( int nRequiredLength)
inlineprivate

Definition at line 208 of file BitSet.cs.

209 {
210 if (nRequiredLength > _bits.Length)
211 {
212 int num = 2 * _bits.Length;
213 if (num < nRequiredLength)
214 {
215 num = nRequiredLength;
216 }
217 uint[] array = new uint[num];
218 Array.Copy(_bits, array, _bits.Length);
219 _bits = array;
220 }
221 }

References System.Xml.Schema.BitSet._bits, System.array, System.Array.Copy(), and System.Xml.Dictionary.

Referenced by System.Xml.Schema.BitSet.Or(), and System.Xml.Schema.BitSet.Set().