byte数组的比较
2015-01-05 22:45:50 访问(2717) 赞(0) 踩(0)
/// <summary>
/// byte数组的比较
/// </summary>
/// <param name="one"></param>
/// <param name="two"></param>
/// <returns></returns>
public bool CompareByteArray(byte[] one, byte[] two)
{
if (one == null && two == null)
return true;
if (one.Length != two.Length)
return false;
int iLen = one.Length;
for (int i = 0; i < iLen; ++i)
{
if (one[i] != two[i])
return false;
}
return true;
}
标签:
byte数组的比较 


上一条:
下一条:
相关评论
发表评论