public static void readFullyWithRE(FileChannel file, ByteBuffer buffer) {
        try {
            readFully(file, buffer);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
Slow function, should only used in test. Unless, you choose to optimize it.
This function will not move the position of <i>from</i>.
indexr-common/src/main/java/io/indexr/util/IOUtil.java