@Override
    public int compareTo(ByteArrayWrapper o) {
        return BytesUtil.compareBytes(base, offset, len, o.base, o.offset, o.len);
    }
A bytes wrapper mainly used to correctly compare contents of two byte lists.
indexr-common/src/main/java/io/indexr/util/ByteArrayWrapper.java