@Override
public int compareTo(int position, int offset, int length, Block otherBlock, int otherPosition, int otherOffset, int otherLength)
{
checkReadablePosition(position);
Slice rawSlice = getRawSlice(position);
if (getLength(position) < length) {
throw new IllegalArgumentException("Length longer than value length");
}
return -otherBlock.bytesCompare(otherPosition, otherOffset, otherLength, rawSlice, getPositionOffset(position) + offset, length);
}