public static int findCommonPrefix(ByteBuffer left, int leftOffset, int leftLength,
                                       ByteBuffer right, int rightOffset, int rightLength) {
        return CommonPrefixerHolder.BEST_COMMON_PREFIXER.findCommonPrefix(left, leftOffset, leftLength,
                right, rightOffset, rightLength);
    }
Find length of common prefix in two arrays.

@param left        ByteBuffer to be compared.
@param leftOffset  Offset in left ByteBuffer.
@param leftLength  Length of left ByteBuffer.
@param right       ByteBuffer to be compared.
@param rightOffset Offset in right ByteBuffer.
@param rightLength Length of right ByteBuffer.
stroom-bytebuffer/src/main/java/stroom/bytebuffer/hbase/ByteBufferUtils.java