public byte[] ReversalHighLow(int num)
{
byte[] b = new byte[2];
UInt16 result = (UInt16)(num);
b[0] = (byte)(result >> 8);//高位
b[1] = (byte)(result & 0xff);//低位
return b;
}
高低位转换
最新推荐文章于 2024-07-12 14:44:00 发布