public static boolean checkEquals(ByteSlice s1, ByteSlice s2) {
        if (s1.size() != s2.size()) {
            return false;
        }
        for (int i = 0; i < s1.size(); i++) {
            if (s1.get(i) != s2.get(i)) {
                return false;
            }
        }
        return true;
    }
Contents equals or not. Slow function, used in test case.
indexr-common/src/main/java/io/indexr/io/ByteSlice.java