@Override
    public boolean hasNext() {
      return this.curIndex <= endBuffer;
    }
Iterator to fetch ByteBuffers from offset with given length in this big logical array.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ByteBufferArray.java