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;}
时间: 2024-11-03 05:44:19