@SuppressWarnings({ "SuspiciousSystemArraycopy", "unchecked" })
        private long addAll(final Object[] src, final int srcPos, final int len) {
            long addBytes = 0;
            System.arraycopy(src, srcPos, this.elements, this.pos, len);
            for (int i = srcPos; i < srcPos + len; i++) {
                addBytes += ((T) src[i]).estimatedSize();
            }
            this.pos += len;
            this.bytes += addBytes;
            return addBytes;
        }
A recyclable segment.
@author boyan(boyan@antfin.com)

@param <T>
jraft-core/src/main/java/com/alipay/sofa/jraft/util/SegmentList.java