public override int[] Grow() { Debug.Assert(bytesStart != null); return(bytesStart = ArrayUtil.Grow(bytesStart, bytesStart.Length + 1)); }
/// <summary> /// Expand the <see cref="T:long[]"/> with the size given as a number of words (64 bit longs). </summary> public virtual void EnsureCapacityWords(int numWords) { m_bits = ArrayUtil.Grow(m_bits, numWords); m_wlen = numWords; Debug.Assert((this.numBits = Math.Max(this.numBits, numWords << 6)) >= 0); }
/// <summary> /// Used to grow the reference array. /// <para/> /// In general this should not be used as it does not take the offset into account. /// <para/> /// @lucene.internal /// </summary> public void Grow(int newLength) { Debug.Assert(Offset == 0); // NOTE: senseless if offset != 0 bytes = ArrayUtil.Grow(bytes, newLength); }