public void addAll(T[] src, int srcIdx, int srcCnt) {while (0 < srcCnt) {int i = tailBlkIdx;int n = Math.min(srcCnt, BLOCK_SIZE - i);if (n == 0) {add(src[srcIdx++]);srcCnt--;continue;}System.arraycopy(src, srcIdx, tailBlock, i, n);tailBlkIdx += n;size += n;srcIdx += n;srcCnt -= n;}}

public void addAll ( T [ ] src , int srcIdx , int srcCnt ) { while ( 0 < srcCnt ) { int i = tailBlkIdx ; int n = Math . min ( srcCnt , BLOCK_SIZE - i ) ; if ( n == 0 ) { add ( src [ srcIdx ++ ] ) ; srcCnt -- ; continue ; } System . arraycopy ( src , srcIdx , tailBlock , i , n ) ; tailBlkIdx += n ; size += n ; srcIdx += n ; srcCnt -= n ; } }
public virtual void AddAll(T[] src, int srcIdx, int srcCnt){while (0 < srcCnt){int i = tailBlkIdx;int n = Math.Min(srcCnt, BLOCK_SIZE - i);if (n == 0){AddItem(src[srcIdx++]);srcCnt--;continue;}System.Array.Copy(src, srcIdx, tailBlock, i, n);tailBlkIdx += n;size += n;srcIdx += n;srcCnt -= n;}}
