CyrusBuilt.MonoPi.BitSet.EnsureCapacity C# (CSharp) 메소드

EnsureCapacity() 개인적인 메소드

Ensures that this BitSet can hold enough words.
private EnsureCapacity ( Int32 lastElt ) : void
lastElt System.Int32 /// The minimum acceptable number of words. ///
리턴 void
		private void EnsureCapacity(Int32 lastElt) {
			if (lastElt >= this._bits.Length) {
				long[] nd = new long[lastElt + 1];
				Array.Copy(this._bits, 0, nd, 0, this._bits.Length);
				this._bits = nd;
				this._sizeIsSticky = false;
			}
		}