@Override
    public boolean equals(Object o) {
        ByteArrayWrapper that = (ByteArrayWrapper) o;
        return hashCode == that.hashCode
                && len == that.len
                && ByteArrayMethods.arrayEquals(base, offset, that.base, that.offset, len);
    }
A bytes wrapper mainly used to correctly compare contents of two byte lists.
indexr-common/src/main/java/io/indexr/util/ByteArrayWrapper.java