/// <summary> /// 数字值转换为十六进制字符串 /// </summary> /// <param name="value">数字值</param> /// <param name="hexs">十六进制字符串</param> /// <returns>0表示相等</returns> internal unsafe static uint CheckHex(this uint value, char *hexs) { return(((uint)*hexs ^ NumberExtension.ToHex(value >> 28)) | ((uint)*(hexs + 1) ^ NumberExtension.ToHex((value >> 24) & 15)) | ((uint)*(hexs + 2) ^ NumberExtension.ToHex((value >> 20) & 15)) | ((uint)*(hexs + 3) ^ NumberExtension.ToHex((value >> 16) & 15)) | ((uint)*(hexs + 4) ^ NumberExtension.ToHex((value >> 12) & 15)) | ((uint)*(hexs + 5) ^ NumberExtension.ToHex((value >> 8) & 15)) | ((uint)*(hexs + 6) ^ NumberExtension.ToHex((value >> 4) & 15)) | ((uint)*(hexs + 7) ^ NumberExtension.ToHex(value & 15))); }