@Override
    public void foreach(int start, int count, IntSetter setter) {
        int end = start + count;
        switch (version) {
            case Version.VERSION_0_ID:
                for (int index = start; index < end; index++) {
                    setter.set(index, (int) NumOp.getVal(numType, dataAddr, index, minVal));
                }
                break;
            default:
                for (int index = start; index < end; index++) {
                    setter.set(index, NumOp.getInt(dataAddr, index));
                }
                break;
        }
    }
Note that this method could update the content of dpn.
Make sure to call this method before you actually save the dpn instance to storage.
indexr-segment/src/main/java/io/indexr/segment/pack/DataPack.java