presto-spi/src/main/java/io/prestosql/spi/block/AbstractVariableWidthBlock.java/AbstractVariableWidthBlock/equals
class AbstractVariableWidthBlock:    @Override
    public boolean equals(int position, int offset, Block otherBlock, int otherPosition, int otherOffset, int length)
    {
        checkReadablePosition(position);
        Slice rawSlice = getRawSlice(position);
        if (getSliceLength(position) < length) {
            return false;
        }
        return otherBlock.bytesEqual(otherPosition, otherOffset, rawSlice, getPositionOffset(position) + offset, length);
    }