[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)]
        static extern int ByteEquals(byte[] b1, byte[] b2, long count);

        /// <summary>
        /// 比较数组
        /// </summary>
        /// <param name="b1"></param>
        /// <param name="b2"></param>
        /// <returns></returns>
        static bool ByteArrayCompare(byte[] b1, byte[] b2)
        {
            return b1.Length == b2.Length && ByteEquals(b1, b2, b1.Length) == 0;
        }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-12-29
  • 2022-12-23
  • 2021-10-13
  • 2022-01-18
  • 2021-08-01
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案