来源: byte[] to int64_new_smile的专栏-CSDN博客
private Int64 BytesToInt64 (byte[] sourceBytes)
{
if (null==sourceBytes)
{
throw new ArgumentNullException();
}
Int64 temp = new Int64();
byte tempByte;
for (int i = 0; i < 8; i++)
{
tempByte = sourceBytes[i];
temp += (tempByte & 0xFFFFFFFFFFFF) << (8 * i);
}
return temp;
}
字节数组转换为int64,
————————————————
版权声明:本文为CSDN博主「new_smile」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/new_smile/article/details/19194505