CyrusBuilt.MonoPi.BitSet.ExpandTo C# (CSharp) Method

ExpandTo() private method

Ensures that the BitSet can accomodate a given word index, temporarily violating the invariants. The caller must restore the invariants before returning to the user, possibly using CyrusBuilt.MonoPi.BitSet.RecalculateWordsInUse().
private ExpandTo ( Int32 wordIndex ) : void
wordIndex System.Int32 /// The index to be accommodated. ///
return void
		private void ExpandTo(Int32 wordIndex) {
			Int32 required = wordIndex + 1;
			if (this._wordsInUse < required) {
				this.EnsureCapacity(required);
				this._wordsInUse = required;
			}
		}