public static int findCommonPrefix(ByteBuffer left, int leftOffset, int leftLength, byte[] 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       Array to be compared
@param rightOffset Offset in right Array.
@param rightLength Length of right Array.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ByteBufferUtils.java