public static int Find(this byte[] array, int offset, int count, byte[] other, int otherOffset, int otherCount)
 {
     if (array == null)
     {
         throw new ArgumentNullException("array");
     }
     if (otherCount > count)
     {
         return(array.Length);
     }
     for (int index = offset + count - otherCount; offset < index; ++offset)
     {
         if (ByteArrayExtensions.SequenceEqual(array, offset, other, otherOffset, otherCount))
         {
             return(offset);
         }
     }
     return(array.Length);
 }