byte[] buf=com.read(1);
if(buf.Length==0)
return;
if(buf[0]==0xEB)
{
buf=com.Read(5);
}
会不会覆盖掉 会的话怎么解决这个问题
if(buf.Length==0)
return;
if(buf[0]==0xEB)
{
buf=com.Read(5);
}
会不会覆盖掉 会的话怎么解决这个问题
if(buf[0]==0xEB)
{
buf2=com.Read(5);
}
//如果你要把他们加在一起
byte[] temp = new byte[buf.Length+buf2.Length];
Array.Copy(buf,0,temp,0,buf.Length);
Array.Copy(buf2,0,temp,buf.Length,buf2.Length);
buf = temp;