zero if equal, positive if rotation[i] > rotation[j].
compareRotations
private fn
int compareRotations(const(ubyte)[] block, size_t i, size_t j) pure nothrow @nogcCompare two rotations of the input block lexicographically.
This function compares the rotation starting at index i with the rotation starting at index j. Rotations wrap around the end of the block.
Parameters
block | The input data block. |
i | Starting index of first rotation. |
j | Starting index of second rotation. |
Returns
Negative if rotation[i] < rotation[j],