18,356
社区成员
发帖
与我相关
我的任务
分享
byte *m_pEncodeBytes;
nPreamble=211;
m_pEncodeBytes[0]=byte(nPreamble&0xff); m_pEncodeBytes[1]=byte(0&0xff);
m_pEncodeBytes[2]=byte(m_nMsgLen&0xff);
int a = -0x1223;
byte b=a;
byte c=byte(a&0xff);
ASSERT(b==c);
a&0xff
是只要a的后8位