Sharpen.BitSet.GrowToInclude C# (CSharp) 메소드

GrowToInclude() 공개 메소드

public GrowToInclude ( int bit ) : void
bit int
리턴 void
        public virtual void GrowToInclude(int bit)
        {
            int newSize = (int)(System.Math.Max(dataBits.Length << 1, numWordsToHold(bit)));
            long[] newbits = new long[newSize];
            Array.Copy(dataBits, 0, newbits, 0, dataBits.Length);
            dataBits = newbits;
        }