/// <summary>
        /// Equals
        /// </summary>
        /// <param name="k1"></param>
        /// <param name="k2"></param>
        /// <returns></returns>
        public unsafe bool Equals(ref byte[] k1, ref byte[] k2)
        {
            int length = k1.Length;
            if (length != k2.Length)
                return false;

            fixed (byte* b1 = k1, b2 = k2)
            {
                return Utility.IsEqual(b1, b2, length);
            }
        }
Ejemplo n.º 2
0
 public static bool IsEqual(Key *k1, Key *k2)
 {
     return(Utility.IsEqual((byte *)k1, (byte *)k2, kSizeInBytes));
 }