@Override
   public int matches( ByteBuffer sequenceA, int indexA, ByteBuffer sequenceB, int indexB, int count )
   {
      for (int i = 0; i < count; i++)
      {
         if (sequenceA.get(indexA + i) != sequenceB.get(indexB + i))
         {
            return i;
         }
      }

      return count;
   }