//LisByteToInt(new List<byte> { 1, 1, 1, 1 });
int LisByteToInt(List<byte> ls)
{
int tmp = 0;
for (int i = 0; i < ls.Count(); i++)
{
tmp |= ls[ls.Count() - i - 1] << (i);
}
return tmp;
}
06-24
4060
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-18
2485
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)