unsigned long UCharToULong(unsigned char * pucVar )
{
unsigned long ulTemp=0;
ulTemp=(unsigned long)(*pucVar);
ulTemp<<=8;
pucVar++;
ulTemp|=(unsigned long)(*pucVar);
return ulTemp;
}
void ULongToUChar(unsigned char * pucVar,unsigned long ulVar)
{
unsigned short usVar;
usVar=(unsigned short)ulVar;
*pucVar=(unsigned char)(usVar>>8);
pucVar++;
*pucVar=(unsigned char)usVar;
}
posted on   baraka  阅读(1588)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示