1、网络字节序转换
float m = 5f;
var btValue = BitConverter.GetBytes(m).Reverse().ToArray();
2、byte[]数组合并
byte[] data = new byte[10];
byte[] counts =new byte[3];
byte[] ndata = new byte[data.Length + counts.Length];
data
1、网络字节序转换
float m = 5f;
var btValue = BitConverter.GetBytes(m).Reverse().ToArray();
2、byte[]数组合并
byte[] data = new byte[10];
byte[] counts =new byte[3];
byte[] ndata = new byte[data.Length + counts.Length];
data